statusline add lsp status
This commit is contained in:
parent
21b2680e56
commit
2f2389a31b
1 changed files with 3 additions and 1 deletions
|
@ -175,8 +175,10 @@ components.left.active[11] = {
|
||||||
|
|
||||||
components.right.active[1] = {
|
components.right.active[1] = {
|
||||||
provider = function()
|
provider = function()
|
||||||
if lsp.is_lsp_attached then
|
if next(vim.lsp.buf_get_clients()) ~= nil then
|
||||||
return " " .. " " .. " LSP"
|
return " " .. " " .. " LSP"
|
||||||
|
else
|
||||||
|
return ""
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
hl = { fg = colors.grey_fg2, bg = colors.statusline_bg },
|
hl = { fg = colors.grey_fg2, bg = colors.statusline_bg },
|
||||||
|
|
Loading…
Reference in a new issue