From 007f71ce692f32b7b57a048bf55348aca3c9933d Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 24 Apr 2025 11:09:38 +0300 Subject: Replaced nvim-notify with snacks notifier and downloaded some more programs for pdf/latex image support for snacks --- .config/nvim/lua/custom/plugins/snacks.lua | 37 +++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 6 deletions(-) (limited to '.config/nvim/lua/custom/plugins/snacks.lua') diff --git a/.config/nvim/lua/custom/plugins/snacks.lua b/.config/nvim/lua/custom/plugins/snacks.lua index c5bda80..50f4ff2 100644 --- a/.config/nvim/lua/custom/plugins/snacks.lua +++ b/.config/nvim/lua/custom/plugins/snacks.lua @@ -1,20 +1,45 @@ return { 'folke/snacks.nvim', + priority = 1000, + lazy = false, ---@type snacks.Config opts = { - image = { - -- your image configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below + image = {}, + ---@class snacks.notifier.Config + notifier = { + ---@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 + if notif.msg == msg then + return false + end + end + return true + end, }, }, keys = { { 'si', function() - require('snacks').image.hover() + Snacks.image.hover() + end, + }, + { + 'nd', + function() + Snacks.notifier.hide() end, + desc = '[N]otifications [D]ismiss All', + }, + { + 'nh', + function() + Snacks.notifier.show_history() + end, + desc = '[N]otifications [D]ismiss All', }, }, - lazy = false, } -- cgit v1.3.1