folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.24k stars 178 forks source link

[Feature] Only display certain LSP servers in the workspace diagnostic panel #315

Closed pidgeon777 closed 4 months ago

pidgeon777 commented 1 year ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

Sometimes, multiple LSP servers are active in a workspace.

This could for example happen when editing a LUA and a C/C++ project.

In this case, Trouble would report all errors coming from both the C and LUA LSP servers, which could be annoying when one would want to focus on just one project, because the diagnostic panel would be over-populated with the found issues coming from all of the active LSP servers.

Describe the solution you'd like

It could be good to add an argument/option to the Trouble workspace_diagnostics function so that a table of strings can be passed to it specifying the name of the LSP servers to be reported in the workspace diagnostic panel.

For example:

`Trouble workspace_diagnostics reported_lsp={ "clangd", "sumneko_lua" }

Or, more in general, a functionality which lets the user dynamically filter out the unwanted LSP servers from an active workspace diagnostic panel (for example with checkboxes).argument/option

Describe alternatives you've considered

N/A

Additional context

No response

folke commented 4 months ago

Development on the main branch is EOL.

Trouble has been rewritten and will be merged in main soon.

This issue/feature either no longer exists or has been implemented on dev.

For more info, see https://github.com/folke/trouble.nvim/tree/dev