summaryrefslogtreecommitdiff
path: root/lua/core
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-09-05 18:33:58 +0430
committerGitHub <[email protected]>2021-09-05 18:33:58 +0430
commite40182919396dc100630975d68ed879473ec7da4 (patch)
tree8b494fed4216c05c5e365762fca4575f562f80c9 /lua/core
parentf7260c6bec370f40144d2a9e6b7464be4e14f9e2 (diff)
[BUGFIX] don't show table address in lualine (#1477)
Diffstat (limited to 'lua/core')
-rw-r--r--lua/core/lualine/components.lua5
1 files changed, 4 insertions, 1 deletions
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