fix(nvim): make heirline lsp info show correctly

This commit is contained in:
Price Hiller 2024-06-13 23:24:49 -05:00
parent 01d4014922
commit b10e1aebf5
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -582,30 +582,30 @@ return {
return { fg = colors.oniViolet, bg = bg }
end,
},
},
{
condition = utils.lsp_attached,
{
provider = function()
local names = {}
for _, server in
ipairs(vim.lsp.get_clients({ bufnr = vim.api.nvim_get_current_buf() }))
do
table.insert(names, server.name)
end
return " " .. table.concat(names, ", ")
end,
hl = { fg = colors.sumiInk0, bg = colors.oniViolet2 },
},
{
provider = seps.full.right,
hl = function()
local bg = utils.get_highlight("WinBar").bg
if conditions.has_diagnostics() then
bg = colors.sumiInk4
end
return { fg = colors.oniViolet2, bg = bg }
end,
condition = conditions.lsp_attached,
{
provider = function()
local names = {}
for _, server in
ipairs(vim.lsp.get_clients({ bufnr = vim.api.nvim_get_current_buf() }))
do
table.insert(names, server.name)
end
return " " .. table.concat(names, ", ")
end,
hl = { fg = colors.sumiInk0, bg = colors.oniViolet2 },
},
{
provider = seps.full.right,
hl = function()
local bg = utils.get_highlight("WinBar").bg
if conditions.has_diagnostics() then
bg = colors.sumiInk4
end
return { fg = colors.oniViolet2, bg = bg }
end,
},
},
},
},