Skip to content

Commit

Permalink
fix: use external index for lsp counting
Browse files Browse the repository at this point in the history
  • Loading branch information
89iuv committed Mar 29, 2024
1 parent f66654d commit c3572a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/catppuccin/groups/integrations/feline.lua
Expand Up @@ -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
Expand Down

0 comments on commit c3572a9

Please sign in to comment.