Update init.lua

This commit is contained in:
Fast Code 2025-05-08 02:09:44 +03:00 committed by GitHub
parent ec5981dfb1
commit 07a2b274ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,8 +211,9 @@ return {
-- get all the servers that are available through mason-lspconfig
local have_mason, mlsp = pcall(require, "mason-lspconfig")
local all_mslp_servers = {}
if have_mason then
all_mslp_servers = vim.tbl_keys(require("mason-lspconfig.mappings.server").lspconfig_to_package)
all_mslp_servers = mlsp.get_available_servers()
end
local ensure_installed = {} ---@type string[]