-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Optionally disable realtime running of diagnotics #566
Comments
Diagnostics are notification messages from server. Unfortunately, Language Server Specification does not have spec for customize to disable diagnotic. See TextDocumentClientCapabilities in https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/ |
How does the server running the diagnostics know that the content has changed if it's just in nvim's internal buffer and hasn't been saved to disk? Clearly there has to be some mechanism alerting the server of changes in realtime... |
you can use |
Not quite. I want the diagnostics, I just don't want them to be recalculated on every keystroke, that doesn't make sense. You wouldn't run your compiler after every keystroke. I'm wondering if there's an option to have diagnostics refreshed, for example, on BufWrite. |
To not send the text until saving mean to not support hover, completion, or most of features of language server. |
Ahh, hadn't considered that, good point. However I've been looking at the protocol and it looks like after any given |
@rcr Setting I guess |
Running diagnostics in realtime doesn't make sense. For example, running the compiler while typing code generates compilation errors for missing semicolons before I'm finished typing the line out. I'd like to control when diagnostics are run, on BufWrite, or after a timeout period.
The text was updated successfully, but these errors were encountered: