From 9968e699d295faf1e42aa89f6b2c29d88249d568 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 15 Jun 2025 16:32:01 +0300 Subject: =?UTF-8?q?=D0=92=D1=81=2015=20=D0=B8=D1=8E=D0=BD=202025=2016:32:0?= =?UTF-8?q?1=20MSK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/nvim/lua/plugins/zk.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 config/nvim/lua/plugins/zk.lua (limited to 'config/nvim/lua/plugins/zk.lua') diff --git a/config/nvim/lua/plugins/zk.lua b/config/nvim/lua/plugins/zk.lua new file mode 100644 index 0000000..1640b77 --- /dev/null +++ b/config/nvim/lua/plugins/zk.lua @@ -0,0 +1,26 @@ +return { + "zk-org/zk-nvim", + version = "v0.3.0", + config = function() + require("zk").setup({ + picker = "telescope", + + 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, + filetypes = { "markdown" }, -- moved to lsp.config above + }, + }, + }) + end, +} -- cgit v1.2.3