diff options
| author | kylo252 <[email protected]> | 2022-04-03 14:32:52 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-03 14:32:52 +0200 | 
| commit | fa710f6ddd6da354f3410d6d7ef42d306a54f145 (patch) | |
| tree | 01825ad9bf81b6095ed218dce983fac74ba14219 /lua/lvim/plugins.lua | |
| parent | 93c5fed8e768d019ddb4f0213416df745cd0e929 (diff) | |
refactor: re-enable packer.sync() in LvimReload (#2410)
Diffstat (limited to 'lua/lvim/plugins.lua')
| -rw-r--r-- | lua/lvim/plugins.lua | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index 9ead83d2..519a203a 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -13,8 +13,12 @@ local core_plugins = {    {      "lunarvim/onedarker.nvim",      config = function() -      require("onedarker").setup() -      lvim.builtin.lualine.options.theme = "onedarker" +      pcall(function() +        if lvim and lvim.colorscheme == "onedarker" then +          require("onedarker").setup() +          lvim.builtin.lualine.options.theme = "onedarker" +        end +      end)      end,      disable = lvim.colorscheme ~= "onedarker",    }, | 
