[MINOR] Added Ocaml-lsp in nvim

This commit is contained in:
Afonso Franco 2023-10-21 15:18:01 +01:00
parent 62bdf9f699
commit 1a58525e35
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys

View file

@ -48,14 +48,19 @@ local capabilities = vim.tbl_deep_extend(
require('cmp_nvim_lsp').default_capabilities() require('cmp_nvim_lsp').default_capabilities()
) )
mason_lspconfig.setup_handlers { local setup = {
-- 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)
lspconfig[server_name].setup {
on_attach = on_attach, on_attach = on_attach,
flags = lsp_flags, flags = lsp_flags,
capabilities = capabilities, capabilities = capabilities,
} }
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)
function(server_name)
lspconfig[server_name].setup { setup }
end, end,
} }
lspconfig["ocamllsp"].setup {
setup
}