nvim/lua/plugins/zk.lua
2023-12-01 20:58:13 +01:00

27 lines
659 B
Lua

return {
'mickael-menu/zk-nvim',
config = function()
require('zk').setup({
picker = 'telescope',
-- config = {
-- on_attach = require('plugins.lspconfig').on_attach
-- }
lsp = {
-- `config` is passed to `vim.lsp.start_client(config)`
config = {
cmd = { 'zk', 'lsp' },
name = 'zk',
-- on_attach = ...
-- etc, see `:h vim.lsp.start_client()`
},
-- automatically attach buffers in a zk notebook that match the given filetypes
auto_attach = {
enabled = true,
filetypes = { 'markdown' },
},
},
})
end
}