This commit is contained in:
2023-12-01 20:57:55 +01:00
parent 943f29a165
commit 9af61291c3
3 changed files with 26 additions and 5 deletions

View File

@ -298,6 +298,11 @@ return {
on_attach = on_attach,
}
lspconfig['zk'].setup {
capabilities = capabilities,
on_attach = on_attach,
}
lspconfig['yamlls'].setup {
capabilities = capabilities,
on_attach = on_attach,

View File

@ -3,9 +3,24 @@ return {
config = function()
require('zk').setup({
picker = 'telescope',
config = {
on_attach = require('plugins.lspconfig').on_attach
}
-- 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
}