fix dashboard not showing | (#888)

This commit is contained in:
siduck 2022-03-20 07:30:30 +05:30
parent 229ad7e00d
commit 75dbf5027d
2 changed files with 5 additions and 9 deletions

View File

@ -72,22 +72,18 @@ default.buttons = {
}, },
} }
default.section = {
header = default.header,
buttons = default.buttons,
}
local M = {} local M = {}
M.setup = function(override_flag) M.setup = function(override_flag)
if override_flag then if override_flag then
default = require("core.utils").tbl_override_req("alpha", default) default = require("core.utils").tbl_override_req("alpha", default)
end end
alpha.setup { alpha.setup {
layout = { layout = {
{ type = "padding", val = 5 }, { type = "padding", val = 9 },
default.section.header, default.header,
{ type = "padding", val = 2 }, { type = "padding", val = 2 },
default.section.buttons, default.buttons,
}, },
opts = {}, opts = {},
} }

View File

@ -185,7 +185,7 @@ local plugins = {
{ {
disable = not plugin_settings.status.alpha, disable = not plugin_settings.status.alpha,
"goolord/alpha-nvim", "goolord/alpha-nvim",
config = override_req("alpha", "plugins.configs.alpha"), config = override_req("alpha", "plugins.configs.alpha", "setup"),
}, },
{ {