fix(chezmoi): typo

This commit is contained in:
qw457812 2024-07-23 10:09:35 +08:00
parent f94a0591b3
commit b20fb710c1

View file

@ -68,15 +68,15 @@ return {
"nvimdev/dashboard-nvim", "nvimdev/dashboard-nvim",
optional = true, optional = true,
opts = function(_, opts) opts = function(_, opts)
local projects = { local chezmoi = {
action = pick_chezmoi, action = pick_chezmoi,
desc = " Config", desc = " Config",
icon = "", icon = "",
key = "c", key = "c",
} }
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc) chezmoi.desc = chezmoi.desc .. string.rep(" ", 43 - #chezmoi.desc)
projects.key_format = " %s" chezmoi.key_format = " %s"
-- remove lazyvim config property -- remove lazyvim config property
for i = #opts.config.center, 1, -1 do for i = #opts.config.center, 1, -1 do
@ -85,7 +85,7 @@ return {
end end
end end
table.insert(opts.config.center, 5, projects) table.insert(opts.config.center, 5, chezmoi)
end, end,
}, },