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

This commit is contained in:
Iordanis Petkakis 2024-05-12 11:09:54 +03:00 committed by GitHub
parent 30ce84f7a7
commit 8968c9e9ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -212,7 +212,14 @@ return {
end
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
if LazyVim.lsp.get_config("denols") and LazyVim.lsp.get_config("tsserver") then