You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using lsp#get_buffer_diagnostics_counts() to update my statusline (via the lightline plugin). Unfortunately, I can't find a way to know when diagnostic counts are updated in order to refresh the status line, so the status line is never updated. Everything works fine if I refresh it manually (in this case via a lightline#update() call).
Hi,
I tried using
lsp#get_buffer_diagnostics_counts()
to update my statusline (via the lightline plugin). Unfortunately, I can't find a way to know when diagnostic counts are updated in order to refresh the status line, so the status line is never updated. Everything works fine if I refresh it manually (in this case via alightline#update()
call).Other LSP plugins provide autocommands for that:
CocDiagnosticChange
event (source).ALELintPost
event (source).It seems that none of the existing autocommands can work for this use case. What about adding one for this?
I might give it a try myself if you agree with the approach and point me in the right direction.
Thanks!
The text was updated successfully, but these errors were encountered: