fix(snacks.picker): move dashboard shortcut to picker extra. Closes #5549

This commit is contained in:
Folke Lemaitre 2025-02-08 15:27:20 +01:00
parent 2d6b49281d
commit 2b3bcf36b2
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 11 additions and 14 deletions

View file

@ -157,6 +157,17 @@ return {
{ "<leader>sT", function () Snacks.picker.todo_comments({ keywords = { "TODO", "FIX", "FIXME" } }) end, desc = "Todo/Fix/Fixme" },
},
},
{
"folke/snacks.nvim",
opts = function(_, opts)
table.insert(opts.dashboard.preset.keys, 3, {
icon = "",
key = "p",
desc = "Projects",
action = ":lua Snacks.picker.projects()",
})
end,
},
{
"folke/flash.nvim",
optional = true,

View file

@ -325,18 +325,4 @@ 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,
},
}