update notifications plugins

This commit is contained in:
Alexander Navarro 2024-11-27 10:17:09 -03:00
parent 29574b6e36
commit d2fbfc551e
2 changed files with 29 additions and 3 deletions

View file

@ -27,7 +27,7 @@ require("lazy").setup({
}, },
install = { colorscheme = { "catppuccin" } }, install = { colorscheme = { "catppuccin" } },
checker = { enabled = true }, -- checker = { enabled = true },
}) })
return { return {

View file

@ -1,4 +1,22 @@
local icons = require("aleidk.constants").icons
return { return {
{
"rcarriga/nvim-notify",
opts = {
render = "compact",
fps = "60",
timeout = 2000,
stages = "slide",
icons = {
DEBUG = "",
TRACE = "",
ERROR = icons.diagnostics.Error,
INFO = icons.diagnostics.Info,
WARN = icons.diagnostics.Warn,
}
}
},
{ {
-- better imputs -- better imputs
"stevearc/dressing.nvim", "stevearc/dressing.nvim",
@ -16,6 +34,7 @@ return {
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
"rcarriga/nvim-notify", "rcarriga/nvim-notify",
}, },
---@type NoiceConfig
opts = { opts = {
presets = { presets = {
bottom_search = true, bottom_search = true,
@ -40,6 +59,7 @@ return {
view = "mini_left" view = "mini_left"
} }
}, },
---@type NoiceRouteConfig[]
routes = { routes = {
{ {
-- Don't show these messages -- Don't show these messages
@ -53,13 +73,18 @@ return {
{ {
event = "msg_show", event = "msg_show",
kind = "", kind = "",
find = "written", find = "written", -- file saved msg
}, },
{ {
event = "msg_show", event = "msg_show",
kind = "", kind = "",
find = "yazi.nvim", find = "yazi.nvim",
}, },
{
event = "msg_show",
kind = "",
find = "%d+ (more|fewer) lines", -- undo/redo msg
},
} }
}, },
}, },
@ -68,7 +93,7 @@ return {
event = "notify", event = "notify",
min_height = 15 min_height = 15
}, },
view = 'popup' view = 'popup',
}, },
{ {
filter = { filter = {
@ -78,6 +103,7 @@ return {
view = 'mini' view = 'mini'
}, },
}, },
---@type NoiceConfigViews
views = { views = {
notify = { notify = {
merge = true merge = true