Fix statusline behavior when parts of lsp message are missing

main
Ensar Sarajčić 2022-05-11 15:28:49 +02:00
parent f50d38796e
commit 65bb32b75d
1 changed files with 3 additions and 5 deletions

View File

@ -169,13 +169,11 @@ local statuslines = {
status = status
.. " %2*"
.. "["
.. first_lsp_message.name
.. (first_lsp_message.name or "")
.. "]"
.. "("
.. first_lsp_message.percentage
.. "%%)"
.. (first_lsp_message.percentage and "(" .. first_lsp_message.percentage .. "%%)" or "")
.. " "
.. first_lsp_message.title
.. (first_lsp_message.title or "")
.. "%*"
end
-- TODO: Add current container if devcontainer is used