From 9e13e1e4fe042ba1154b5d172cb33de94936bb88 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Fri, 25 Mar 2022 17:09:06 +0430 Subject: fix(theme): make sure the new theme is fully loaded (#2392) --- lua/lvim/plugin-loader.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua/lvim/plugin-loader.lua') diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua index 1b91cdf4..7612bc37 100644 --- a/lua/lvim/plugin-loader.lua +++ b/lua/lvim/plugin-loader.lua @@ -99,6 +99,9 @@ function plugin_loader.load(configurations) end end end) + -- colorscheme must get called after plugins are loaded or it will break new installs. + vim.g.colors_name = lvim.colorscheme + vim.cmd("colorscheme " .. lvim.colorscheme) end, debug.traceback) if not status_ok then Log:warn "problems detected while loading plugins' configurations" -- cgit v1.2.3