nix-config/home/neovim/configs/lua/configs/mason-lspconfig.lua
2025-03-26 13:26:52 +01:00

25 lines
518 B
Lua

local lspconfig = package.loaded["lspconfig"]
local ignore_install = {}
local function table_contains(table, value)
for _, v in ipairs(table) do
if v == value then
return true
end
end
return false
end
local all_servers = {}
for _, s in ipairs(lspconfig.servers) do
if not table_contains(ignore_install, s) then
table.insert(all_servers, s)
end
end
require("mason-lspconfig").setup({
ensure_installed = all_servers,
automatic_installation = false,
})