NTBBloodbath / galaxyline.nvim

neovim statusline plugin written in lua
MIT License
163 stars 16 forks source link

Return nil if there are no diagnostics #3

Closed richin13 closed 2 years ago

richin13 commented 2 years ago

Sorry @NTBBloodbath, realized the behaviour was not quite right. When count is nil we were returning an empty string which caused the diagnostic component to be shown like this:

image

By explicitly returning nil we make sure the sections are hidden when there are no diagnostic results

Let me know if the change breaks the LSP client implementation 😅

NTBBloodbath commented 2 years ago

Hi, no problem man, thank you for fixing this!