mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 08:35:53 +02:00
fix(snacks.picker): move dashboard shortcut to picker extra. Closes #5549
This commit is contained in:
parent
2d6b49281d
commit
2b3bcf36b2
2 changed files with 11 additions and 14 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue