review Folke

This commit is contained in:
abeldekat 2023-10-20 12:45:46 +02:00
parent 1c8768f22e
commit 6139d8b865
2 changed files with 9 additions and 7 deletions

View file

@ -56,6 +56,10 @@ return {
icon = "", icon = "",
key = "p", key = "p",
} }
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)
projects.key_format = " %s"
table.insert(opts.config.center, 3, projects) table.insert(opts.config.center, 3, projects)
end, end,
}, },

View file

@ -389,6 +389,11 @@ return {
}, },
} }
for _, button in ipairs(opts.config.center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
end
-- close Lazy and re-open when the dashboard is ready -- close Lazy and re-open when the dashboard is ready
if vim.o.filetype == "lazy" then if vim.o.filetype == "lazy" then
vim.cmd.close() vim.cmd.close()
@ -402,12 +407,5 @@ return {
return opts return opts
end, end,
config = function(_, opts)
for _, button in ipairs(opts.config.center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
end
require("dashboard").setup(opts)
end,
}, },
} }