Explorar el Código

there was a weird situation that caused lualine msg to turn boolean instead of table (#1492)

Abouzar Parvan hace 3 años
padre
commit
151684bba1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      lua/core/lualine/components.lua

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

@@ -84,7 +84,8 @@ return {
       msg = msg or "LS Inactive"
       local buf_clients = vim.lsp.buf_get_clients()
       if next(buf_clients) == nil then
-        if #msg == 0 then
+        -- TODO: clean up this if statement
+        if type(msg) == "boolean" or #msg == 0 then
           return "LS Inactive"
         end
         return msg