Преглед изворни кода

[BUGFIX] don't show table address in lualine (#1477)

Abouzar Parvan пре 3 година
родитељ
комит
e401829193
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      lua/core/lualine/components.lua

+ 4 - 1
lua/core/lualine/components.lua

@@ -81,9 +81,12 @@ return {
   },
   },
   lsp = {
   lsp = {
     function(msg)
     function(msg)
-      msg = msg or "LSP Inactive"
+      msg = msg or "LS Inactive"
       local buf_clients = vim.lsp.buf_get_clients()
       local buf_clients = vim.lsp.buf_get_clients()
       if next(buf_clients) == nil then
       if next(buf_clients) == nil then
+        if #msg == 0 then
+          return "LS Inactive"
+        end
         return msg
         return msg
       end
       end
       local buf_ft = vim.bo.filetype
       local buf_ft = vim.bo.filetype