mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-24 13:34:09 +00:00
fix(notifier): toggle show history. Fixes #197
This commit is contained in:
parent
ec191b3fe9
commit
8b58b55e40
1 changed files with 4 additions and 0 deletions
|
@ -449,6 +449,10 @@ end
|
|||
|
||||
---@param opts? snacks.notifier.history
|
||||
function N:show_history(opts)
|
||||
if vim.bo.filetype == "snacks_notif_history" then
|
||||
vim.cmd("close")
|
||||
return
|
||||
end
|
||||
local win = Snacks.win({ style = "notification.history", enter = true, show = false })
|
||||
local buf = win:open_buf()
|
||||
opts = opts or {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue