mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
style(dashboard): remove unnecessary brackets from keys, including the p key from the project extras
This commit is contained in:
parent
0bb628053b
commit
1c8768f22e
1 changed files with 7 additions and 5 deletions
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue