[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()
) )
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
}