mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
feat(notifier): added refresh option configurable
This commit is contained in:
parent
0efbb93e0a
commit
df8c9d7724
1 changed files with 3 additions and 2 deletions
|
|
@ -116,6 +116,7 @@ local defaults = {
|
|||
style = "compact",
|
||||
top_down = true, -- place notifications from top to bottom
|
||||
date_format = "%R", -- time format for notifications
|
||||
refresh = 50, -- refresh at most every 50ms
|
||||
}
|
||||
|
||||
---@class snacks.notifier.Class
|
||||
|
|
@ -288,8 +289,8 @@ end
|
|||
|
||||
function N:start()
|
||||
uv.new_timer():start(
|
||||
100,
|
||||
100,
|
||||
self.opts.refresh,
|
||||
self.opts.refresh,
|
||||
vim.schedule_wrap(function()
|
||||
if not next(self.queue) then
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue