Kaynağa Gözat

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

Abouzar Parvan 3 yıl önce
ebeveyn
işleme
9e13e1e4fe
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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"