2024-05-20 08:42:59 +07:00
|
|
|
return {
|
2024-06-12 18:38:25 +07:00
|
|
|
"rcarriga/nvim-notify",
|
|
|
|
lazy = true,
|
|
|
|
event = "VeryLazy",
|
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
"<leader>un",
|
|
|
|
function()
|
2024-06-14 08:40:35 +07:00
|
|
|
require("notify").dismiss({ silent = true, pending = true })
|
2024-06-12 18:38:25 +07:00
|
|
|
end,
|
|
|
|
desc = "Delete all Notifications",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
opts = {
|
|
|
|
timeout = 3000,
|
|
|
|
max_height = function()
|
|
|
|
return math.floor(vim.o.lines * 0.75)
|
|
|
|
end,
|
|
|
|
max_width = function()
|
|
|
|
return math.floor(vim.o.columns * 0.75)
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
-- event = "BufWinEnter",
|
|
|
|
config = function()
|
2024-06-14 08:40:35 +07:00
|
|
|
local notify = require("notify")
|
2024-06-12 18:38:25 +07:00
|
|
|
-- this for transparency
|
2024-06-13 16:51:54 +07:00
|
|
|
-- notify.setup { background_colour = "#000000", render = "compact" }
|
2024-10-12 16:42:46 +07:00
|
|
|
-- notify.setup({ render = "compact" })
|
|
|
|
notify.setup({ render = "wrapped-compact" })
|
2024-06-12 18:38:25 +07:00
|
|
|
-- this overwrites the vim notify function
|
|
|
|
vim.notify = notify.notify
|
|
|
|
end,
|
2024-05-20 08:42:59 +07:00
|
|
|
}
|