fixed zk
This commit is contained in:
@ -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,
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user