dotfiles/home/apps/neovim/lua/plugins/notify.lua

25 lines
535 B
Lua
Raw Normal View History

---@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
end
return opts
end,
unpack(stages, 2),
},
})
vim.notify = notify
end,
},
}