X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/841d0dfd1080c6726d4f04614b8371ea6ad490b3..a59aa3f7d15dae57e2d066e47af3556c46d9dac4:/nvim/lua/plugins/snacks.lua?ds=sidebyside diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua index 9a6d2fe..7002177 100644 --- a/nvim/lua/plugins/snacks.lua +++ b/nvim/lua/plugins/snacks.lua @@ -54,10 +54,26 @@ return { { icon = " ", key = "s", desc = "Restore Session", section = "session" }, { icon = " ", key = "x", desc = "Lazy Extras", action = ":LazyExtras" }, { icon = "󰒲 ", key = "l", desc = "Lazy", action = ":Lazy" }, - { icon = " ", key = "q", desc = "Quit", action = ":qa" }, }, }, }, }, + }, + { "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" }, + }, } }