Skip to content

Commit

Permalink
fix: use lspconfig.util._available_servers
Browse files Browse the repository at this point in the history
  • Loading branch information
mimikun committed Jan 27, 2025
1 parent 342ef8f commit 6652a77
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/dotfyle_metadata/extras/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ return function()
return {}
end

local servers = lspconfig.util.available_servers()
local servers

if lspconfig.util._available_servers ~= nil then
servers = lspconfig.util._available_servers()
else
servers = lspconfig.util.available_servers()
end

-- sort the plugins A-Za-z
table.sort(servers)
Expand Down

0 comments on commit 6652a77

Please sign in to comment.