mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
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:
parent
f3e37a1f83
commit
0dbeeb530b
1 changed files with 18 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue