diff options
author | Abouzar Parvan <[email protected]> | 2021-09-06 22:53:41 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-06 22:53:41 +0430 |
commit | 151684bba11b702907e58d2acdd41ebc69c27809 (patch) | |
tree | 559c94d85e0c5680bf2565ea6bce8ce08d9c30a2 | |
parent | 5cdd742354c9339a24076d81c33c2620eb5e84ee (diff) |
there was a weird situation that caused lualine msg to turn boolean instead of table (#1492)
-rw-r--r-- | lua/core/lualine/components.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/core/lualine/components.lua b/lua/core/lualine/components.lua index 3d3ac9af..5d240f46 100644 --- a/lua/core/lualine/components.lua +++ b/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 |