2024-11-04 21:29:25 +07:00
|
|
|
return {
|
2024-11-06 12:26:52 +07:00
|
|
|
"rcarriga/nvim-notify",
|
|
|
|
lazy = true,
|
|
|
|
event = "VeryLazy",
|
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
"<leader>uN",
|
|
|
|
function()
|
|
|
|
require("notify").dismiss({ silent = true, pending = true })
|
|
|
|
end,
|
|
|
|
desc = "Delete all Notifications",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
opts = {
|
|
|
|
timeout = 3000,
|
|
|
|
max_height = function()
|
|
|
|
return math.floor(vim.o.lines * 0.75)
|
|
|
|
end,
|
|
|
|
max_width = function()
|
2024-11-18 20:18:15 +07:00
|
|
|
return math.floor(vim.o.columns * 0.4)
|
2024-11-06 12:26:52 +07:00
|
|
|
end,
|
2025-01-19 13:12:37 +07:00
|
|
|
render = "wrapped-default",
|
2024-11-06 12:26:52 +07:00
|
|
|
-- background_colour = "#00000000",
|
|
|
|
},
|
|
|
|
config = function(_, opts)
|
|
|
|
local notify = require("notify")
|
|
|
|
notify.setup(opts)
|
|
|
|
vim.notify = notify.notify
|
|
|
|
end,
|
2024-11-04 21:29:25 +07:00
|
|
|
}
|