-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Looks like the on_attach function sets a CursorHold handler, which gets triggered even after running LspStop.
The consequence is that if an LSP is stopped, neovim will continuously spam the following error:
Error detected while processing CursorHold Autocommands for "<buffer=1>":
method textDocument/documentSymbol is not supported by any of the servers registered for the current buffer
I think there may be two possible fixes:
- Remove the
CursorHoldhandler when an LSP detatches. This seems like the correct fix, but I'm not sure how to do it. - Check that an LSP supports
textDocument/documentSymbolinsideupdate_current_function. This might be more inefficient but easier to do.
Metadata
Metadata
Assignees
Labels
No labels