return { { "zk-org/zk-nvim", config = function() require("zk").setup({ picker = "telescope", lsp = { config = { cmd = { "zk", "lsp" }, name = "zk", }, auto_attach = { enabled = true, filetypes = { "markdown" }, }, }, }) 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) -- 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 } }