diff --git a/lua/lazyvim/plugins/extras/util/chezmoi.lua b/lua/lazyvim/plugins/extras/util/chezmoi.lua index cffa6749..06a33f6f 100644 --- a/lua/lazyvim/plugins/extras/util/chezmoi.lua +++ b/lua/lazyvim/plugins/extras/util/chezmoi.lua @@ -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,