mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-12-25 12:14:19 +01:00
feat(snacks.picker): add projects picker to dashboard if snacks picker is enabled
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user