rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
2.88k stars 72 forks source link

Add a `max_timeout` config #281

Open calebdw opened 2 weeks ago

calebdw commented 2 weeks ago

Hello!

Every so often I get warnings that never timeout and take over my screen:

image

Note that I set focusable to false (because I don't want <c-w>w jumping to the alerts) and therefore there's no way to remove the notification.

      on_open = function(win) vim.api.nvim_win_set_config(win, { focusable = false }) end,

Can you please add a max_timeout config to limit the max time that an alert can be displayed for? I don't want a plugin just arbitrarily disabling a timeout keeping the notification on the screen.

Thanks!