Вс 15 июн 2025 16:32:01 MSK
This commit is contained in:
parent
97af93b2a8
commit
9968e699d2
11 changed files with 150 additions and 105 deletions
26
config/nvim/lua/plugins/zk.lua
Normal file
26
config/nvim/lua/plugins/zk.lua
Normal file
|
@ -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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue