diff options
author | LostNeophyte <[email protected]> | 2023-01-18 14:21:31 +0100 |
---|---|---|
committer | opalmay <[email protected]> | 2023-01-20 23:52:10 +0200 |
commit | 74bd5e16aa2a9dc4bd751618982fcd6cfba3a036 (patch) | |
tree | ac67ecf269cbfb93a008a6279b93a212a334b618 /lua/lvim/core/alpha.lua | |
parent | 2d3140f0d7497cc8352190b2fd4737a7a3420a68 (diff) |
perf: lazy load most plugins
Diffstat (limited to 'lua/lvim/core/alpha.lua')
-rw-r--r-- | lua/lvim/core/alpha.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lua/lvim/core/alpha.lua b/lua/lvim/core/alpha.lua index 3fded29f..19d7899a 100644 --- a/lua/lvim/core/alpha.lua +++ b/lua/lvim/core/alpha.lua @@ -1,17 +1,18 @@ local M = {} function M.config() - local lvim_dashboard = require "lvim.core.alpha.dashboard" - local lvim_startify = require "lvim.core.alpha.startify" + local utils = require "lvim.utils" + local lvim_dashboard = utils.lazy_set("lvim.core.alpha.dashboard", "get_sections") + local lvim_startify = utils.lazy_set("lvim.core.alpha.startify", "get_sections") lvim.builtin.alpha = { dashboard = { config = {}, - section = lvim_dashboard.get_sections(), + section = lvim_dashboard, opts = { autostart = true }, }, startify = { config = {}, - section = lvim_startify.get_sections(), + section = lvim_startify, opts = { autostart = true }, }, active = true, |