[Noice] Configure routes

This commit is contained in:
2025-10-28 11:02:03 +01:00
parent 6f8d32df89
commit 7c83f6d5e8

View File

@@ -24,6 +24,13 @@ return {
["vim.lsp.util.stylize_markdown"] = true, ["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
}, },
progress = {
format = "lsp_progress",
format_done = "lsp_progress_done",
throttle = 1000 / 30,
view = "mini",
timeout = 2000
}
}, },
-- you can enable a preset for easier configuration -- you can enable a preset for easier configuration
presets = { presets = {
@@ -37,12 +44,51 @@ return {
{ {
filter = { filter = {
event = "msg_show", event = "msg_show",
kind = "", kind = "bufwrite",
find = "written",
}, },
opts = { skip = true }, opts = { skip = true },
}, },
{
filter = {
event = "msg_show",
kind = "echo",
cmdline = "VimtexCompile",
find = "VimTeX:",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "echo",
cmdline = "VimtexCompile",
find = "Compil",
},
view = "mini",
opts = {
stop = true,
-- format = { "VimTeX: {message}" },
-- timeout = 2000
},
},
{
filter = {
event = "msg_show",
kind = "bufwrite",
},
opts = { skip = true },
},
{
view = "popup",
filter = {
event = "msg_show",
kind = "lua_print",
cmdline = "UsageTrackerShowAgg",
},
},
}, },
}) })
local opts = require("utils").opts
vim.keymap.set("n", "<leader><leader>h", "<CMD>Noice dismiss<CR>", opts("Dismiss notifications"))
end, end,
} }