Skip to content

Commit

Permalink
fix dashboard not showing | (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
siduck committed Mar 20, 2022
1 parent 229ad7e commit 75dbf50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions lua/plugins/configs/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {},
}
Expand Down
2 changes: 1 addition & 1 deletion lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},

{
Expand Down

0 comments on commit 75dbf50

Please sign in to comment.