Explorar el Código

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

Abouzar Parvan hace 3 años
padre
commit
e401829193
Se han modificado 1 ficheros con 4 adiciones y 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