diff options
Diffstat (limited to '.config/nvim/lua/plugins/snacks.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/snacks.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.config/nvim/lua/plugins/snacks.lua b/.config/nvim/lua/plugins/snacks.lua index 83a12d4..278f5da 100644 --- a/.config/nvim/lua/plugins/snacks.lua +++ b/.config/nvim/lua/plugins/snacks.lua @@ -20,12 +20,18 @@ return { ---@type snacks.notifier.style style = 'compact', filter = function(notif) - local filtered_messages = { 'No information available', 'No code actions available' } - for _, msg in ipairs(filtered_messages) do + local exact_filter = { 'No information available', 'No code actions available' } + local contains_filter = { 'fewer lines', 'lines indented', 'lines yanked' } + 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, }, |
