Skip to content

Commit

Permalink
Update .config/nvim/lua/plugins/ui/lualine.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Allianaab2m committed Nov 18, 2024
1 parent e313b69 commit 7ac857b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dot_config/nvim/lua/plugins/ui/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ local components = {
return msg
end

local lsp_names = ""
local lsp_names = {}
for _, client in ipairs(clients) do
local filetypes = client.config.filetypes
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
lsp_names = lsp_names .. "," .. client.name
table.insert(lsp_names, client.name)
end
end

return "Active" .. "(" .. lsp_names .. ")"
return "Active" .. "(" .. table.concat(lsp_names, ",") .. ")"
end,
}

Expand Down

0 comments on commit 7ac857b

Please sign in to comment.