From e40182919396dc100630975d68ed879473ec7da4 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sun, 5 Sep 2021 18:33:58 +0430 Subject: [BUGFIX] don't show table address in lualine (#1477) --- lua/core/lualine/components.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua/core/lualine/components.lua') diff --git a/lua/core/lualine/components.lua b/lua/core/lualine/components.lua index 894d9e9b..3d3ac9af 100644 --- a/lua/core/lualine/components.lua +++ b/lua/core/lualine/components.lua @@ -81,9 +81,12 @@ return { }, lsp = { function(msg) - msg = msg or "LSP Inactive" + msg = msg or "LS Inactive" local buf_clients = vim.lsp.buf_get_clients() if next(buf_clients) == nil then + if #msg == 0 then + return "LS Inactive" + end return msg end local buf_ft = vim.bo.filetype -- cgit v1.2.3