feat(picker): added notifications picker. Closes #738

This commit is contained in:
Folke Lemaitre 2025-01-28 17:16:30 +01:00
parent 0cb5bdf4ee
commit 32cffd2e60
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 71 additions and 2 deletions

View file

@ -508,6 +508,15 @@ M.marks = {
["local"] = true,
}
---@class snacks.picker.notifications.Config: snacks.picker.Config
---@field filter? snacks.notifier.level|fun(notif: snacks.notifier.Notif): boolean
M.notifications = {
finder = "snacks_notifier",
format = "notification",
preview = "preview",
formatters = { severity = { level = true } },
}
-- List all available sources
M.pickers = {
finder = "meta_pickers",