mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-14 11:24:38 +02:00
Apply suggestions from code review
suggestions by @williamboman and @TheDSCPL Co-authored-by: William Boman <william@redwill.se> Co-authored-by: Luis Durão <kpvrzlzzx@mozmail.com>
This commit is contained in:
parent
0585eeac05
commit
64c4e501c6
3 changed files with 4 additions and 4 deletions
|
@ -196,7 +196,7 @@ return {
|
|||
local have_mason, mlsp = pcall(require, "mason-lspconfig")
|
||||
local all_mslp_servers = {}
|
||||
if have_mason and vim.fn.has("nvim-0.11") == 1 then
|
||||
all_mslp_servers = vim.tbl_keys(require("mason-lspconfig").get_mappings().lspconfig_to_package)
|
||||
all_mslp_servers = vim.tbl_keys(require("mason-lspconfig.mappings").get_mason_map().lspconfig_to_package)
|
||||
elseif have_mason then
|
||||
all_mslp_servers = vim.tbl_keys(require("mason-lspconfig.mappings.server").lspconfig_to_package)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue