summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/nvim-notify.lua
blob: aa7194510dab0f6e48fcb47ff059e1b32ba0cd8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
return {
    'rcarriga/nvim-notify',
    event = 'VeryLazy',
    keys = {
        {
            '<leader>nd',
            function()
                require('notify').dismiss({ silent = true, pending = true })
            end,
            desc = '[N]otify [D]ismiss All',
        },
    },
    opts = function()
        vim.notify = require('notify')
        return {
            fps = 60,
            render = 'default',
            timeout = 500,
            topDown = true,
        }
    end,
}