2023-05-14 13:40:39 +02:00
|
|
|
---@type LazyPluginSpec[]
|
|
|
|
return {
|
|
|
|
{
|
|
|
|
"rcarriga/nvim-notify",
|
|
|
|
config = function()
|
|
|
|
local notify = require("notify")
|
|
|
|
local stages = require("notify.stages.static")("top_down")
|
|
|
|
notify.setup({
|
|
|
|
delay = 5000,
|
|
|
|
stages = {
|
|
|
|
function(...)
|
|
|
|
local opts = stages[1](...)
|
|
|
|
if opts then
|
2023-06-12 05:46:16 +02:00
|
|
|
opts.border = vim.g.bc.style
|
2023-05-14 13:40:39 +02:00
|
|
|
end
|
|
|
|
return opts
|
|
|
|
end,
|
|
|
|
unpack(stages, 2),
|
|
|
|
},
|
|
|
|
})
|
|
|
|
vim.notify = notify
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
}
|