statusline add lsp status

This commit is contained in:
siduck76 2021-08-26 10:59:37 +05:30
parent 21b2680e56
commit 2f2389a31b
1 changed files with 3 additions and 1 deletions

View File

@ -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 },