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" }, }, }, }) vim.keymap.set("n", "zn", "ZkNew { title = vim.fn.input('Title: ') }", { noremap = true, silent = false, desc = "Create a new note after asking for its title." }) vim.keymap.set("n", "zo", "ZkNotes { sort = { 'modified' } }", { noremap = true, silent = false, desc = "Open notes." }) vim.keymap.set("n", "zt", "ZkTags", { noremap = true, silent = false, desc = "Open notes associated with the selected tags." }) vim.keymap.set("n", "zf", "ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }", { noremap = true, silent = false, desc = "Search for the notes matching a given query." }) vim.keymap.set("v", "zf", ":'<,'>ZkMatch", { noremap = true, silent = false, desc = "Search for the notes matching the current visual selection." }) end }, -- Plugin to improve viewing Markdown files in Neovim { "MeanderingProgrammer/render-markdown.nvim", dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" }, opts = {}, config = function() local min_width = 80 require("render-markdown").setup({ code = { position = "right", width = "block", border = "thick", language_pad = 1, min_width = min_width, left_pad = 1, right_pad = 1, }, completions = { lsp = { enabled = true } }, dash = { width = min_width, }, heading = { width = "block", min_width = min_width, }, }) end, }, }