From 2f2389a31bed07cfdbfbd3f3cf3f7631ab5d6622 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Thu, 26 Aug 2021 10:59:37 +0530 Subject: [PATCH] statusline add lsp status --- lua/plugins/configs/statusline.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/plugins/configs/statusline.lua b/lua/plugins/configs/statusline.lua index f9b9a47..43d9d73 100644 --- a/lua/plugins/configs/statusline.lua +++ b/lua/plugins/configs/statusline.lua @@ -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 },