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.15k stars 173 forks source link

feature: order inline diagnostics by severity #360

Closed ianschmitz closed 3 months ago

ianschmitz commented 7 months ago

Did you check the docs?

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

I would like to see error level diagnostics before warning level diagnostics in the in-line view when both are present on the same line number.

For example: CleanShot 2023-11-18 at 16 05 18@2x

Describe the solution you'd like

Display the diagnostics such that error level diagnostics show up first before warning level.

Describe alternatives you've considered

Hiding warning level diagnostics

Additional context

Sorry if this is a dumb question or already supported in some way. There wasn't an obvious solution in the docs from what i saw.

I'm a neovim/LazyVim noob but trying to learn!

folke commented 3 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