diff options
| author | 2025-06-15 16:32:01 +0300 | |
|---|---|---|
| committer | 2025-06-15 16:32:01 +0300 | |
| commit | 9968e699d295faf1e42aa89f6b2c29d88249d568 (patch) | |
| tree | c8cf81ecb672cb8a6c1c9f764d40cdf9e6cfcfdd /config/nvim/lua/plugins/zk.lua | |
| parent | Перевёл dotfiles на stow (diff) | |
| download | dotfiles-9968e699d295faf1e42aa89f6b2c29d88249d568.tar.gz dotfiles-9968e699d295faf1e42aa89f6b2c29d88249d568.tar.bz2 dotfiles-9968e699d295faf1e42aa89f6b2c29d88249d568.tar.xz dotfiles-9968e699d295faf1e42aa89f6b2c29d88249d568.zip | |
Вс 15 июн 2025 16:32:01 MSK
Diffstat (limited to 'config/nvim/lua/plugins/zk.lua')
| -rw-r--r-- | config/nvim/lua/plugins/zk.lua | 26 |
1 files changed, 26 insertions, 0 deletions
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, +} |
