feat(snacks): added leader-n to show notification history

This commit is contained in:
Folke Lemaitre 2024-12-01 09:29:18 +01:00
parent 2fc7697786
commit be0cb9622d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -48,14 +48,10 @@ return {
words = { enabled = true }, words = { enabled = true },
} }
end, end,
-- stylua: ignore
keys = { keys = {
{ { "<leader>n", function() Snacks.notifier.show_history() end, desc = "Notification History" },
"<leader>un", { "<leader>un", function() Snacks.notifier.hide() end, desc = "Dismiss All Notifications" },
function()
Snacks.notifier.hide()
end,
desc = "Dismiss All Notifications",
},
}, },
config = function(_, opts) config = function(_, opts)
local notify = vim.notify local notify = vim.notify