diff options
| author | 2026-02-17 23:28:56 +0300 | |
|---|---|---|
| committer | 2026-02-17 23:28:56 +0300 | |
| commit | 2cd497a205c3f24b920045e939f396218e4d2aeb (patch) | |
| tree | cb4a06992b19d00d41cf566d88d4af91cf116c1a /config/nvim/lua/plugins/zk.lua | |
| parent | Починил zshrc (diff) | |
| download | dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.gz dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.bz2 dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.xz dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.zip | |
added ZK plugin
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..1b21a74 --- /dev/null +++ b/config/nvim/lua/plugins/zk.lua @@ -0,0 +1,26 @@ +return { + "zk-org/zk-nvim", + config = function() + require("zk").setup({ + -- Can be "telescope", "fzf", "fzf_lua", "minipick", "snacks_picker", + -- or select" (`vim.ui.select`). + 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, + }, + }, + }) + end, +} |
