[Noice] Configure routes
This commit is contained in:
@@ -24,6 +24,13 @@ return {
|
||||
["vim.lsp.util.stylize_markdown"] = true,
|
||||
["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
|
||||
presets = {
|
||||
@@ -37,12 +44,51 @@ return {
|
||||
{
|
||||
filter = {
|
||||
event = "msg_show",
|
||||
kind = "",
|
||||
find = "written",
|
||||
kind = "bufwrite",
|
||||
},
|
||||
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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user