refactor: nvim
This commit is contained in:
27
nvim/lua/plugins/zk.lua
Normal file
27
nvim/lua/plugins/zk.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
return {
|
||||
"zk-org/zk-nvim",
|
||||
event = 'BufEnter',
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user