Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing autocommand when diagnostics are updated #733

Closed
ipkiss42 opened this issue Feb 28, 2020 · 2 comments
Closed

Missing autocommand when diagnostics are updated #733

ipkiss42 opened this issue Feb 28, 2020 · 2 comments

Comments

@ipkiss42
Copy link

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 a lightline#update() call).

Other LSP plugins provide autocommands for that:

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!

@prabirshrestha
Copy link
Owner

Feel free to send a PR.

@prabirshrestha
Copy link
Owner

Fixed by #783 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants