nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.37k stars 285 forks source link

[Enhancement] Better `Lspsaga subtypes` and `Lspsaga supertypes` LSP filtering #1428

Open pidgeon777 opened 2 months ago

pidgeon777 commented 2 months ago

When running the following commands:

a pop-up appears asking to select the wished LSP to perform the TypeHierarchy request.

For example, in the case of Python** it is possible in my buffer to select between:

copilot wouldn't make sense and it is suggested on every buffer where it is active.

To solve this, I would propose for example to check if the LSP attached to the buffer supports the TypeHierarchy capability, before showing it in the pop-up.

Also, maybe it would be technically possible to merge all of the results provided by the remaining LSPs?