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

This commit is contained in:
Abouzar Parvan 2021-09-06 22:53:41 +04:30 committed by GitHub
parent 5cdd742354
commit 151684bba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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