diff --git a/nvim/lua/plugins/style/noice.lua b/nvim/lua/plugins/style/noice.lua index 6acc096..635d1f6 100755 --- a/nvim/lua/plugins/style/noice.lua +++ b/nvim/lua/plugins/style/noice.lua @@ -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", "h", "Noice dismiss", opts("Dismiss notifications")) end, }