We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39d4e49 commit a536798Copy full SHA for a536798
1 file changed
lua/tiny-inline-diagnostic/cache.lua
@@ -8,6 +8,12 @@ local function sort_by_severity(diagnostics)
8
local sorted = vim.deepcopy(diagnostics)
9
table.sort(sorted, function(a, b)
10
return a.severity < b.severity
11
+ or (
12
+ a.severity == b.severity
13
+ and a._extmark_id
14
+ and b._extmark_id
15
+ and a._extmark_id > b._extmark_id
16
+ )
17
end)
18
return sorted
19
end
0 commit comments