all_mslp_servers fix

This commit is contained in:
aauutthh 2025-05-08 00:12:42 +08:00 committed by GitHub
parent ec5981dfb1
commit e15f5a7cee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -212,7 +212,7 @@ return {
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 = vim.tbl_keys(require("mason-lspconfig.mappings").get_mason_map().lspconfig_to_package)
end
local ensure_installed = {} ---@type string[]