feat(snacks.picker): add projects picker to dashboard if snacks picker is enabled

This commit is contained in:
Folke Lemaitre 2025-02-02 23:34:05 +01:00
parent 7f8e797d2b
commit fb256f2b68
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -325,4 +325,18 @@ return {
},
},
},
{
"folke/snacks.nvim",
opts = function(_, opts)
if not opts.picker then
return
end
table.insert(opts.dashboard.preset.keys, 3, {
icon = "",
key = "p",
desc = "Projects",
action = ":lua Snacks.picker.projects()",
})
end,
},
}