mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(mason): only don't install servers with enabled=false
This commit is contained in:
parent
21518ae8a3
commit
e44e31fded
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ return {
|
||||||
if have_mason then
|
if have_mason then
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = vim.tbl_filter(function(server)
|
ensure_installed = vim.tbl_filter(function(server)
|
||||||
return not vim.tbl_contains(exclude, server)
|
return opts.servers[server].enabled ~= false
|
||||||
end, vim.list_extend(servers, LazyVim.opts("mason-lspconfig.nvim").ensure_installed or {})),
|
end, vim.list_extend(servers, LazyVim.opts("mason-lspconfig.nvim").ensure_installed or {})),
|
||||||
automatic_enable = { exclude = exclude },
|
automatic_enable = { exclude = exclude },
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue