return { "zk-org/zk-nvim", keys = { { "zn", "ZkNew { title = vim.fn.input('Title: ') }", desc = "Create a new note after asking for its title" }, { "zo", "ZkNotes { sort = { 'modified' } }", desc = "Open Notes" }, { "zt", "ZkTags", desc = "Open notes associated with the selected tags" }, { "zf", "ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }", desc = "Search for the notes matching a given query" }, { "zf", ":'<,'>ZkMatch", mode = { "v" }, desc = "Search for the notes matching the current visual selection" }, }, config = function() require("zk").setup({ picker = "fzf_lua", lsp = { -- `config` is passed to `vim.lsp.start(config)` config = { name = "zk", cmd = { "zk", "lsp" }, filetypes = { "markdown" }, -- on_attach = ... -- etc, see `:h vim.lsp.start()` }, -- automatically attach buffers in a zk notebook that match the given filetypes auto_attach = { enabled = true, }, }, }) end, }