diff --git a/README.md b/README.md index 34feeb2..e437ca3 100644 --- a/README.md +++ b/README.md @@ -373,7 +373,7 @@ vim.api.nvim_set_keymap("n", "zo", "ZkNotes { sort = { 'modified' } vim.api.nvim_set_keymap("n", "zt", "ZkTags", opts) -- Search for the notes matching a given query. -vim.api.nvim_set_keymap("n", "zf", "ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }", opts) +vim.api.nvim_set_keymap("n", "zf", "ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }", opts) -- Search for the notes matching the current visual selection. vim.api.nvim_set_keymap("v", "zf", ":'<,'>ZkMatch", opts) ``` diff --git a/doc/zk.txt b/doc/zk.txt index 273ef91..dca1c5e 100644 --- a/doc/zk.txt +++ b/doc/zk.txt @@ -375,7 +375,7 @@ Add these global mappings in your main Neovim config: -- Open notes associated with the selected tags. vim.api.nvim_set_keymap("n", "zt", "ZkTags", opts) -- Search for the notes matching a given query. - vim.api.nvim_set_keymap("n", "zf", "ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }", opts) + vim.api.nvim_set_keymap("n", "zf", "ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }", opts) -- Search for the notes matching the current visual selection. vim.api.nvim_set_keymap("v", "zf", ":'<,'>ZkMatch", opts) <