fix(picker): show new notifications on top

This commit is contained in:
Folke Lemaitre 2025-01-30 16:14:14 +01:00
parent 1b301ad8d6
commit 0df7c0bef5

View file

@ -2,7 +2,7 @@ local M = {}
---@param opts snacks.picker.notifications.Config
function M.notifier(opts)
local notifs = Snacks.notifier.get_history({ filter = opts.filter })
local notifs = Snacks.notifier.get_history({ filter = opts.filter, reverse = true })
local items = {} ---@type snacks.picker.finder.Item[]
for _, notif in ipairs(notifs) do