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/theme.lua | |
parent | 2d3140f0d7497cc8352190b2fd4737a7a3420a68 (diff) |
perf: lazy load most plugins
Diffstat (limited to 'lua/lvim/core/theme.lua')
-rw-r--r-- | lua/lvim/core/theme.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/lvim/core/theme.lua b/lua/lvim/core/theme.lua index 6bf67906..5a39f046 100644 --- a/lua/lvim/core/theme.lua +++ b/lua/lvim/core/theme.lua @@ -85,8 +85,12 @@ M.setup = function() vim.g.colors_name = lvim.colorscheme vim.cmd("colorscheme " .. lvim.colorscheme) - require("lvim.core.lualine").setup() - require("lvim.core.lir").icon_setup() + if package.loaded.lualine then + require("lvim.core.lualine").setup() + end + if package.loaded.lir then + require("lvim.core.lir").icon_setup() + end end return M |