26 lines
561 B
Lua
26 lines
561 B
Lua
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,
|
|
}
|