summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/noice.lua
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-08-26 21:59:22 +0300
committerKyren223 <contact@kyren.codes>2025-08-26 21:59:22 +0300
commita39fbcdd35c0d00d35bd343996a46f391a68f2b7 (patch)
tree9e4c3643ad3c5b10c25c320ebb96e1cfe8dd6196 /.config/nvim/lua/plugins/noice.lua
parent970caf177d951ffffbfa18fdb5dfa67dc7927e61 (diff)
Fixed/changed some nvim notification/errors stuff
Diffstat (limited to '.config/nvim/lua/plugins/noice.lua')
-rw-r--r--.config/nvim/lua/plugins/noice.lua45
1 files changed, 27 insertions, 18 deletions
diff --git a/.config/nvim/lua/plugins/noice.lua b/.config/nvim/lua/plugins/noice.lua
index 06de5a5..90f5994 100644
--- a/.config/nvim/lua/plugins/noice.lua
+++ b/.config/nvim/lua/plugins/noice.lua
@@ -50,6 +50,14 @@ return {
},
},
},
+ messages = {
+ enabled = true, -- enables the Noice messages UI
+ view = 'notify', -- default view for messages
+ view_error = 'messages', -- view for errors
+ view_warn = 'notify', -- view for warnings
+ view_history = 'messages', -- view for :messages
+ view_search = false, -- view for search count messages. Set to `false` to disable
+ },
-- you can enable a preset for easier configuration
cmdline = {
enabled = true, -- enables the Noice cmdline UI
@@ -69,29 +77,30 @@ return {
},
routes = {
{
+ -- NOTE: filters errors from the command line
filter = {
event = 'msg_show',
- kind = 'search_count',
- },
- opts = { skip = true },
- },
- {
- filter = {
- event = 'msg_show',
- kind = '',
- find = 'written',
+ error = true,
+ cmdline = true,
},
opts = { skip = true },
},
- {
- view = 'popup',
- filter = {
- event = 'msg_show',
- kind = '',
- find = 'written',
- },
- -- opts = { skip = true },
- },
+ -- TODO: Do I need this?
+ -- {
+ -- filter = {
+ -- event = 'msg_show',
+ -- kind = 'search_count',
+ -- },
+ -- opts = { skip = true },
+ -- },
+ -- {
+ -- filter = {
+ -- event = 'msg_show',
+ -- kind = '',
+ -- find = 'written',
+ -- },
+ -- -- opts = { skip = true },
+ -- },
},
presets = {
bottom_search = true, -- use a classic bottom cmdline for search