diff options
| author | Francis Belanger <francis.belanger@gmail.com> | 2024-04-22 11:43:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-22 11:43:10 -0400 |
| commit | f4bdeb93ff08a793b204f1038c9b7cc4cfa4571d (patch) | |
| tree | 34123940c959bac789348b0133d19e64c6d1a152 /nvim/lua | |
| parent | 34bf50f34195aea4cd10236695f3c05bf1e3e672 (diff) | |
| download | dots-f4bdeb93ff08a793b204f1038c9b7cc4cfa4571d.tar.gz | |
Fix highlight errors when lsp crash or stop (#864)
* Fix highlight errors when lsp crash or stop
It adds a check wether the client is still available before
highlighting.
If the client is not there anymore it returns `true` to unregister the
autocommand
This fix the
`method textDocument/documentHighlight is not supported by any of the servers registered for the current buffer`
errors when doing a LspRestart or the server crashes
* Delete the highlight autocommands in the LspDetatch event
* Only delete autocmds for the current buffer with the group name
* Simplify clearing the autocommands
---------
Co-authored-by: Francis Belanger <francis.belanger@ubisoft.com>
Diffstat (limited to 'nvim/lua')
0 files changed, 0 insertions, 0 deletions