nvim-lua / lsp-status.nvim

Utility functions for getting diagnostic status and progress messages from LSP servers, for use in the Neovim statusline
MIT License
621 stars 41 forks source link

`CursorHold` continuously fails if LSP does not support `textDocument/documentSymbol` #84

Open WhyNotHugo opened 1 year ago

WhyNotHugo commented 1 year ago
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 the right to do here is to check that the server has this capability before sending the request (perhaps this can be done just once per buffer?).