feat(mason-lspconfig): allow opts.ensure_installed to be taken into account

This commit is contained in:
Iordanis Petkakis 2024-05-10 19:20:30 +03:00
parent 530e94a9fa
commit 7b79d58de2

View file

@ -212,7 +212,14 @@ return {
end end
if have_mason then if have_mason then
mlsp.setup({ ensure_installed = ensure_installed, handlers = { setup } }) mlsp.setup({
ensure_installed = vim.tbl_deep_extend(
"force",
ensure_installed,
LazyVim.opts("mason-lspconfig.nvim").ensure_installed or {}
),
handlers = { setup },
})
end end
if LazyVim.lsp.get_config("denols") and LazyVim.lsp.get_config("tsserver") then if LazyVim.lsp.get_config("denols") and LazyVim.lsp.get_config("tsserver") then