mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
feat(notifier): reverse notif history by default for show_history
This commit is contained in:
parent
cb795513b3
commit
5a50738b8e
1 changed files with 4 additions and 0 deletions
|
@ -445,6 +445,10 @@ end
|
|||
function N:show_history(opts)
|
||||
local win = Snacks.win({ style = "notification.history", enter = true, show = false })
|
||||
local buf = win:open_buf()
|
||||
opts = opts or {}
|
||||
if opts.reverse == nil then
|
||||
opts.reverse = true
|
||||
end
|
||||
for _, notif in ipairs(self:get_history(opts)) do
|
||||
N.styles.history(buf, notif, {
|
||||
opts = win.opts,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue