mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-07 19:34:30 +02:00
feat(snacks.picker): use snacks picker for notifications when enabled
This commit is contained in:
parent
132986a624
commit
01a70cc60e
2 changed files with 8 additions and 1 deletions
|
@ -278,7 +278,13 @@ return {
|
|||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>n", function() Snacks.notifier.show_history() end, desc = "Notification History" },
|
||||
{ "<leader>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" },
|
||||
{ "<leader>un", function() Snacks.notifier.hide() end, desc = "Dismiss All Notifications" },
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue