fix(picker.diagnostics): sort on empty pattern. Fixes #641

This commit is contained in:
Folke Lemaitre 2025-01-19 16:27:18 +01:00
parent 553976e4be
commit c6c76a6aa3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -96,6 +96,7 @@ M.diagnostics = {
"lnum",
},
},
matcher = { sort_empty = true },
-- only show diagnostics from the cwd by default
filter = { cwd = true },
}
@ -107,6 +108,7 @@ M.diagnostics_buffer = {
sort = {
fields = { "severity", "file", "lnum" },
},
matcher = { sort_empty = true },
filter = { buf = true },
}