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

fix: only filter msg if sev is hardcoded #328

Closed Willem-J-an closed 11 months ago

Willem-J-an commented 11 months ago

Fixes previous breaking change #304 that prevented nvim severity tables from working, such as:

require("trouble").setup({
    severity = { min = vim.diagnostic.severity.INFO },
})

Optimal fix might be a less naive way of filtering severity, but I'd leave that for somebody that cares about this feature.

folke commented 11 months ago

thanks!