Closed eatgrass closed 1 year ago
I noticed we've got couples of issues and pull requests for the diagnostics filter feature, I implemented this to meet my own requirment, and also tried to keep the simplicity as much as possible.
Thank you for this PR. Can you change it so users need to set it using the correct enums instead of a string?
So trouble.opts.severity = vim.diagnostic.severity.ERROR
for example.
This will further simplify the code and is more in line on how severities are used in Neovim
I changed a little bit, make the severity
lsp.DiagnosticSeverity, let me know if it is ok
thanks!
feat: filter diagnostics by severity level, with default keybind
s