Skip to content

Commit

Permalink
feat(mason-lspconfig): allow opts.ensure_installed to be taken into…
Browse files Browse the repository at this point in the history
… account (#3134)
  • Loading branch information
dpetka2001 committed May 12, 2024
1 parent 30ce84f commit 8968c9e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/lazyvim/plugins/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8968c9e

Please sign in to comment.