diff options
author | LostNeophyte <[email protected]> | 2023-01-25 20:35:07 +0100 |
---|---|---|
committer | LostNeophyte <[email protected]> | 2023-01-25 20:35:14 +0100 |
commit | bfe8ee9cba642525a5bbbe0b27f6049ba9ee1ef4 (patch) | |
tree | a8090330ae29bcb109ec3690b9226b837d799a37 /lua/lvim/core/alpha.lua | |
parent | 75b653cc623a8cd6de397e42f21b838a065eb0e0 (diff) |
fix: don't overriding user's config
Diffstat (limited to 'lua/lvim/core/alpha.lua')
-rw-r--r-- | lua/lvim/core/alpha.lua | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/lua/lvim/core/alpha.lua b/lua/lvim/core/alpha.lua index d49a4d0f..259f97c2 100644 --- a/lua/lvim/core/alpha.lua +++ b/lua/lvim/core/alpha.lua @@ -1,22 +1,18 @@ local M = {} function M.config() - local config = { - dashboard = { - config = {}, - section = require("lvim.core.alpha.dashboard").get_sections(), - opts = { autostart = true }, - }, - startify = { - config = {}, - section = require("lvim.core.alpha.startify").get_sections(), - opts = { autostart = true }, - }, - mode = "dashboard", + lvim.builtin.alpha.dashboard = { + config = {}, + section = require("lvim.core.alpha.dashboard").get_sections(), + opts = { autostart = true }, } - ---@cast config +LvimBuiltin - require("lvim.core.builtins").extend_defaults(config) - lvim.builtin.alpha = config + lvim.builtin.alpha.startify = { + config = {}, + section = require("lvim.core.alpha.startify").get_sections(), + opts = { autostart = true }, + } + lvim.builtin.alpha.mode = "dashboard" + lvim.builtin.alpha = require("lvim.core.builtins").add_completion "alpha" end local function resolve_buttons(theme_name, button_section) |