style(dashboard): remove unnecessary brackets from keys, including the p key from the project extras

This commit is contained in:
abeldekat 2023-10-19 21:31:20 +02:00
parent 0bb628053b
commit 1c8768f22e

View file

@ -389,11 +389,6 @@ 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
if vim.o.filetype == "lazy" then
vim.cmd.close()
@ -407,5 +402,12 @@ return {
return opts
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,
},
}