-
Notifications
You must be signed in to change notification settings - Fork 273
Description
Is your feature request related to a problem? Please describe.
Diagnostics information in the gutter, and especially highlighting, can be quite distracting when writing code. More often than not code that is in the process of being written is invalid until it is completed, either by ending the line, or exiting insert mode. This effectively results in the text and gutter flickering unnecessarily in the area that you are trying to focus on.
Describe the solution you'd like
One or more of the below solutions may be viable;
- Diagnostics delayed on a timer, reset at each keypress
- Diagnostics deferred being presented until exiting edit mode (or a new line)
- An ability to turn off highlighting when in edit mode, or altogether
- Use g:LanguageClient_changeThrottle, but with an ability to force a 'sync' just prior to autocompletion trigger
Describe alternatives you've considered
Setting texthl to an empty string hides the highlighting, but it is still gets applied, affecting performance. It'd also be nice to see the highlighting, but when viewing code rather than trying to write it. The gutter signs are also present:
let g:LanguageClient_diagnosticsDisplay = {
...
"texthl": "", I could try setting 'g:LanguageClient_changeThrottle', however this has an impact on autocompletion.