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

Guard documentSymbol call with checking capability #81

Open xiaochuanyu opened 1 year ago

xiaochuanyu commented 1 year ago

As mentioned in https://github.com/nvim-lua/lsp-status.nvim/issues/74, this plugin tries to query document symbol even if capable clients are no longer attached current buffer (e.g. due to LSP server error). This PR tries to fix that by checking first capable LSP client and just query that client or do nothing.