From ccdf0d4594c13f6450d32fc9927dd0987a0f4cb5 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 26 Apr 2025 13:58:36 +0300 Subject: Added noice.nvim, might change some of the settings later --- .config/nvim/lua/plugins/snacks.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.config/nvim/lua/plugins/snacks.lua') 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, }, -- cgit v1.3.1