Explorar o código

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

Abouzar Parvan %!s(int64=3) %!d(string=hai) anos
pai
achega
e401829193
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lua/core/lualine/components.lua

+ 4 - 1
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