mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 15:19:26 +02:00
there was a weird situation that caused lualine msg to turn boolean instead of table (#1492)
This commit is contained in:
parent
5cdd742354
commit
151684bba1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue