statusline add lsp status

This commit is contained in:
siduck76 2021-08-26 10:59:37 +05:30
parent 21b2680e56
commit 2f2389a31b

View file

@ -175,8 +175,10 @@ components.left.active[11] = {
components.right.active[1] = {
provider = function()
if lsp.is_lsp_attached then
if next(vim.lsp.buf_get_clients()) ~= nil then
return " " .. "" .. " LSP"
else
return ""
end
end,
hl = { fg = colors.grey_fg2, bg = colors.statusline_bg },