nvim-notify icon indicating copy to clipboard operation
nvim-notify copied to clipboard

[Feature Request] Animate Dismiss function.

Open hfytr opened this issue 1 year ago • 2 comments

So there is a function in the API which clears the screen of all notifications instantly. I was hoping an option could be added which animates this just like when notifications normally expire.

hfytr avatar Jun 19 '24 13:06 hfytr

You should be able to do so via:

require('notify').dismiss { pending = true, silent = true }

At least this did the trick for me :)

topaxi avatar Nov 19 '24 09:11 topaxi

You should be able to do so via:

require('notify').dismiss { pending = true, silent = true }

At least this did the trick for me :)

It doesn't work for me, my config is:

return {
    'rcarriga/nvim-notify',
    config = function()
        require("notify").setup({
            background_colour = "#000000",
            timeout = 10000,
            fps = 48,
            render = "wrapped-default", -- compact",
            time_formats = {
                notification = "%T",
            },
            max_width = 70,
            stages = "slide"
        })
        vim.notify = require('notify')
    end
}

Imo, animated should also be default behavior and not require to pass any parameters

javalsai avatar Feb 04 '25 16:02 javalsai