feat(noice): add config to noice and notify

This commit is contained in:
2024-10-22 01:33:17 +04:00
parent 26f9ad46d3
commit a6c2687a8f
2 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
local BUILTIN_STAGES = {
FADE = "fade",
SLIDE = "slide",
FADE_IN_SLIDE_OUT = "fade_in_slide_out",
STATIC = "static",
}
require("notify").setup({
level = vim.log.levels.TRACE,
timeout = 5000,
max_height = function()
return math.floor(vim.o.lines * 0.75)
end,
max_width = function()
return math.floor(vim.o.columns * 0.75)
end,
on_open = function(win)
vim.api.nvim_win_set_config(win, { zindex = 100 })
end,
stages = BUILTIN_STAGES.SLIDE,
render = "default",
background_colour = "NotifyBackground",
on_close = function () end,
minimum_width = 50,
fps = 10,
top_down = true,
time_formats = {
notification_history = "%FT%T",
notification = "%T",
},
icons = {
ERROR = "",
WARN = "",
INFO = "",
DEBUG = "",
TRACE = "",
},
})
require("notify")("You're welcome!")