diff --git a/lua/noice/view/backend/notify.lua b/lua/noice/view/backend/notify.lua index cdaf56e..fdb173f 100644 --- a/lua/noice/view/backend/notify.lua +++ b/lua/noice/view/backend/notify.lua @@ -9,6 +9,8 @@ local Manager = require("noice.message.manager") ---@field level? string|number Message log level ---@field merge boolean Merge messages into one Notification or create separate notifications ---@field replace boolean Replace existing notification or create a new one +---@field render? notify.RenderFun +---@field timeout? integer local defaults = { title = "Notification", merge = false, @@ -127,6 +129,7 @@ function NotifyView:_notify(msg) local opts = { title = msg.title or self._opts.title, + timeout = self._opts.timeout, replace = self._opts.replace and self.notif[instance], keep = function() return Util.is_blocking()