From 5b297ad511330bbcc00eab9113d5d6e366486839 Mon Sep 17 00:00:00 2001 From: mmj <121494430+mmj2023@users.noreply.github.com> Date: Fri, 9 May 2025 01:52:55 -0400 Subject: [PATCH] fixed using the proper api used the proper way to call the function told by the author --- lua/lazyvim/plugins/lsp/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/lsp/init.lua b/lua/lazyvim/plugins/lsp/init.lua index c30a8e14..9bab33d7 100644 --- a/lua/lazyvim/plugins/lsp/init.lua +++ b/lua/lazyvim/plugins/lsp/init.lua @@ -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").get_available_servers()) + all_mslp_servers =require("mason-lspconfig.mappings").get_mason_map().lspconfig_to_package end local ensure_installed = {} ---@type string[]