From 5cf8fa3815100d1869a35a0cce541ad366a65bb9 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 2 Sep 2025 21:34:24 +0300 Subject: Stop showing "lines" related msgs in nvim --- .config/nvim/lua/plugins/noice.lua | 25 +++++++++---------------- .config/nvim/lua/plugins/snacks.lua | 28 ---------------------------- 2 files changed, 9 insertions(+), 44 deletions(-) (limited to '.config/nvim/lua/plugins') diff --git a/.config/nvim/lua/plugins/noice.lua b/.config/nvim/lua/plugins/noice.lua index f37b58f..96c2319 100644 --- a/.config/nvim/lua/plugins/noice.lua +++ b/.config/nvim/lua/plugins/noice.lua @@ -79,22 +79,15 @@ return { }, 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 }, - -- }, + { + -- NOTE: filters "fewer/more lines" messages + filter = { + event = 'msg_show', + kind = '', + find = 'lines', + }, + opts = { skip = true }, + }, }, presets = { bottom_search = true, -- use a classic bottom cmdline for search diff --git a/.config/nvim/lua/plugins/snacks.lua b/.config/nvim/lua/plugins/snacks.lua index dab8179..0f810e6 100644 --- a/.config/nvim/lua/plugins/snacks.lua +++ b/.config/nvim/lua/plugins/snacks.lua @@ -159,34 +159,6 @@ return { gitbrowse = {}, image = {}, input = {}, - -- TODO: do I need this still? - -- notifier = { - -- ---@type snacks.notifier.style - -- style = 'compact', - -- filter = function(notif) - -- local exact_filter = { 'No information available', 'No code actions available' } - -- local contains_filter = { - -- 'lines', - -- 'fewer lines', - -- 'lines indented', - -- 'lines yanked', - -- 'more lines', - -- 'lines moved', - -- 'E486:', - -- } - -- for _, msg in ipairs(exact_filter) do - -- if notif.msg == msg then - -- return false - -- end - -- end - -- for _, msg in ipairs(contains_filter) do - -- if string.find(notif.msg, msg) then - -- return false - -- end - -- end - -- return true - -- end, - -- }, picker = {}, quickfile = {}, terminal = { -- cgit v1.3.1