mirror of
https://github.com/catppuccin/nvim
synced 2024-09-16 13:24:08 +02:00
fix: use external index for lsp counting
This commit is contained in:
parent
f66654d5d5
commit
c3572a968a
1 changed files with 3 additions and 1 deletions
|
@ -418,10 +418,12 @@ function M.get()
|
|||
if view.lsp.name == false and next(active_clients) ~= nil then return assets.lsp.server .. " " .. "Lsp" end
|
||||
|
||||
-- show the actual name of the runing lsps
|
||||
local index = 0
|
||||
local lsp_names = ""
|
||||
for index, lsp_config in ipairs(active_clients) do
|
||||
for _, lsp_config in ipairs(active_clients) do
|
||||
if is_lsp_in_excluded_list(lsp_config.name) then goto continue end
|
||||
|
||||
index = index + 1
|
||||
if index == 1 then
|
||||
lsp_names = assets.lsp.server .. " " .. lsp_config.name
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue