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 = {}
M.setup = function(override_flag)
if override_flag then
default = require("core.utils").tbl_override_req("alpha", default)
end
alpha.setup {
layout = {
{ type = "padding", val = 5 },
default.section.header,
{ type = "padding", val = 9 },
default.header,
{ type = "padding", val = 2 },
default.section.buttons,
default.buttons,
},
opts = {},
}

View File

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