feat(chezmoi): add snacks dashboard integration for chezmoi files

Since now Snacks.dashboard is the default dashboard for LazyVim we add
chezmoi files integration to it
This commit is contained in:
Dai López 2025-02-20 22:57:21 -06:00
parent f3e37a1f83
commit 0dbeeb530b

View file

@ -96,6 +96,24 @@ return {
})
end,
},
{
"folke/snacks.nvim",
opts = function(_, opts)
local projects = {
icon = "",
key = "c",
desc = "Config",
action = pick_chezmoi,
}
for i = #opts.dashboard.preset.keys, 1, -1 do
if opts.dashboard.preset.keys[i].key == "c" then
table.remove(opts.dashboard.preset.keys, i)
table.insert(opts.dashboard.preset.keys, i, projects)
end
end
end,
},
{
"nvimdev/dashboard-nvim",
optional = true,