diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-04-26 13:58:36 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-04-26 13:58:36 +0300 |
| commit | ccdf0d4594c13f6450d32fc9927dd0987a0f4cb5 (patch) | |
| tree | 10fab2a4555e9ddff1ef906d5ff7f9fc7007810e /.config/nvim/lua/plugins/snacks.lua | |
| parent | f49c9899d127d87a71f28b5f5f6f0622ec3c4f3d (diff) | |
Added noice.nvim, might change some of the settings later
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, }, |
