Skip to content

Commit

Permalink
feat(snacks-picker): add snacks.notifier picker if used for notific…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
mehalter committed Jan 28, 2025
1 parent 0e1cf11 commit 2f234c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/fuzzy-finder/snacks-picker/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ return {
"AstroNvim/astrocore",
opts = function(_, opts)
local maps = opts.mappings
local astro = require "astrocore"
maps.n["<Leader>f"] = vim.tbl_get(opts, "_map_sections", "f")
if vim.fn.executable "git" == 1 then
maps.n["<Leader>g"] = vim.tbl_get(opts, "_map_sections", "g")
Expand Down Expand Up @@ -52,6 +53,10 @@ return {
maps.n["<Leader>fh"] = { function() require("snacks").picker.help() end, desc = "Find help" }
maps.n["<Leader>fk"] = { function() require("snacks").picker.keymaps() end, desc = "Find keymaps" }
maps.n["<Leader>fm"] = { function() require("snacks").picker.man() end, desc = "Find man" }
if astro.plugin_opts("snacks.nvim").notifier then
maps.n["<Leader>fn"] =
{ function() require("snacks").picker.notifications() end, desc = "Find notifications" }
end
maps.n["<Leader>fo"] = { function() require("snacks").picker.recent() end, desc = "Find old files" }
maps.n["<Leader>fO"] =
{ function() require("snacks").picker.recent { cwd = true } end, desc = "Find old files (cwd)" }
Expand Down

0 comments on commit 2f234c5

Please sign in to comment.