mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(lsp): use correct mason-lspconfig API for getting mappings
The mason-lspconfig plugin changed its API. The module
`mason-lspconfig.mappings` no longer has a `get_mason_map()`
function. Instead, the correct API is `require("mason-lspconfig").get_mappings()`
which returns a table with `lspconfig_to_mason` and `mason_to_lspconfig` keys.
This fixes the error:
module 'mason-lspconfig.mappings' not found
Fixes #6710
This commit is contained in:
parent
cd745b14f8
commit
a8b08388ed
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ return {
|
|||
-- get all the servers that are available through mason-lspconfig
|
||||
local have_mason = LazyVim.has("mason-lspconfig.nvim")
|
||||
local mason_all = have_mason
|
||||
and vim.tbl_keys(require("mason-lspconfig.mappings").get_mason_map().lspconfig_to_package)
|
||||
and vim.tbl_keys(require("mason-lspconfig").get_mappings().lspconfig_to_package)
|
||||
or {} --[[ @as string[] ]]
|
||||
local mason_exclude = {} ---@type string[]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue