return { "zk-org/zk-nvim", config = function() require("zk").setup({ picker = "minipick", }) local opts = { noremap=true, silent=false } -- Create a new note after asking for its title. vim.api.nvim_set_keymap("n", "zn", "ZkNew { title = vim.fn.input('Title: ') }", opts) vim.api.nvim_set_keymap("n", "zd", "ZkNew { dir = \"journal/daily\" }", opts) -- Open notes. vim.api.nvim_set_keymap("n", "zo", "ZkNotes { sort = { 'modified' } }", opts) -- 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) -- Search for the notes matching the current visual selection. vim.api.nvim_set_keymap("v", "zf", ":'<,'>ZkMatch", opts) end }