mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
fix(picker.diagnostics): sort on empty pattern. Fixes #641
This commit is contained in:
parent
553976e4be
commit
c6c76a6aa3
1 changed files with 2 additions and 0 deletions
|
@ -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 },
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue