Explorar o código

fix(theme): make sure the new theme is fully loaded (#2392)

Abouzar Parvan %!s(int64=3) %!d(string=hai) anos
pai
achega
9e13e1e4fe
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      lua/lvim/plugin-loader.lua

+ 3 - 0
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"