trouble.nvim icon indicating copy to clipboard operation
trouble.nvim copied to clipboard

Feature: Allow files to be highlighted based on highest severity

Open mtrajano opened this issue 3 years ago • 0 comments

This would allow the user to see a high level overview of which files have errors, warnings, etc.. similar to how vscode highlights the tab with the worst severity. This is useful if you have a lot of files open and you have them folded by default. Let me know if this sounds interesting and I can get a pr out for it.

I got it working by making some small changes to providers.group to have file attributes, instead of just returning an array of diagnostics for each file. This allows for some other interesting possibilities: sort by files with the worst severity, seprate the count by severity etc.. Example of how it can look:

Screen Shot 2021-11-21 at 11 45 48 AM

mtrajano avatar Nov 21 '21 17:11 mtrajano