25 lines
914 B
Diff
25 lines
914 B
Diff
|
|
From 2ce643428722dc0d6e181ea4745097c6e18feca2 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Lars Kellogg-Stedman <larsks>
|
||
|
|
Date: Wed, 7 May 2025 21:45:00 -0400
|
||
|
|
Subject: [PATCH] Fix broken integration with Mason 2.0.0
|
||
|
|
|
||
|
|
---
|
||
|
|
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 b5cba5f..1dfc8c7 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.mappings.server").lspconfig_to_package)
|
||
|
|
+ all_mslp_servers = require("mason-lspconfig").get_mappings().lspconfig_to_package
|
||
|
|
end
|
||
|
|
|
||
|
|
local ensure_installed = {} ---@type string[]
|
||
|
|
--
|
||
|
|
2.49.0
|