[MINOR] Added Ocaml-lsp in nvim
This commit is contained in:
parent
62bdf9f699
commit
1a58525e35
1 changed files with 10 additions and 5 deletions
|
@ -48,14 +48,19 @@ local capabilities = vim.tbl_deep_extend(
|
||||||
require('cmp_nvim_lsp').default_capabilities()
|
require('cmp_nvim_lsp').default_capabilities()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local setup = {
|
||||||
|
on_attach = on_attach,
|
||||||
|
flags = lsp_flags,
|
||||||
|
capabilities = capabilities,
|
||||||
|
}
|
||||||
mason_lspconfig.setup_handlers {
|
mason_lspconfig.setup_handlers {
|
||||||
|
|
||||||
-- This is a default handler that will be called for each installed server (also for new servers that are installed during a session)
|
-- This is a default handler that will be called for each installed server (also for new servers that are installed during a session)
|
||||||
function(server_name)
|
function(server_name)
|
||||||
lspconfig[server_name].setup {
|
lspconfig[server_name].setup { setup }
|
||||||
on_attach = on_attach,
|
|
||||||
flags = lsp_flags,
|
|
||||||
capabilities = capabilities,
|
|
||||||
}
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lspconfig["ocamllsp"].setup {
|
||||||
|
setup
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue