From c0d75edea00656df4952a61bb92239a4fb61fc6a Mon Sep 17 00:00:00 2001 From: tomaswyz Date: Thu, 16 Jun 2022 11:29:31 +0800 Subject: [PATCH] fix: always display `LSP ~` --- lua/ui/statusline.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/ui/statusline.lua b/lua/ui/statusline.lua index 341b893..7dd9ad8 100644 --- a/lua/ui/statusline.lua +++ b/lua/ui/statusline.lua @@ -157,7 +157,7 @@ M.LSP_status = function() end local name = false - if names ~= {} then + if next(names) then name = table.concat(names, '|') end