Fix statusline behavior when parts of lsp message are missing
parent
f50d38796e
commit
65bb32b75d
|
@ -169,13 +169,11 @@ local statuslines = {
|
||||||
status = status
|
status = status
|
||||||
.. " %2*"
|
.. " %2*"
|
||||||
.. "["
|
.. "["
|
||||||
.. first_lsp_message.name
|
.. (first_lsp_message.name or "")
|
||||||
.. "]"
|
.. "]"
|
||||||
.. "("
|
.. (first_lsp_message.percentage and "(" .. first_lsp_message.percentage .. "%%)" or "")
|
||||||
.. first_lsp_message.percentage
|
|
||||||
.. "%%)"
|
|
||||||
.. " "
|
.. " "
|
||||||
.. first_lsp_message.title
|
.. (first_lsp_message.title or "")
|
||||||
.. "%*"
|
.. "%*"
|
||||||
end
|
end
|
||||||
-- TODO: Add current container if devcontainer is used
|
-- TODO: Add current container if devcontainer is used
|
||||||
|
|
Loading…
Reference in New Issue