From a59aa3f7d15dae57e2d066e47af3556c46d9dac4 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 9 Feb 2025 15:28:49 +0000 Subject: [PATCH] lazyvim: absorb snacks notifier --- nvim/lua/plugins/snacks.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua index 1d62dd1..7002177 100644 --- a/nvim/lua/plugins/snacks.lua +++ b/nvim/lua/plugins/snacks.lua @@ -58,5 +58,22 @@ return { }, }, }, + }, + { "folke/snacks.nvim", + opts = { + notifier = { enabled = true }, + }, + -- stylua: ignore + keys = { + -- TODO: review after picking picker (ha) + { "n", function() + if Snacks.config.picker and Snacks.config.picker.enabled then + Snacks.picker.notifications() + else + Snacks.notifier.show_history() + end + end, desc = "Notification History" }, + { "un", function() Snacks.notifier.hide() end, desc = "Dismiss All Notifications" }, + }, } } -- 2.48.1