Parcourir la source

fix: automatically set colorscheme (#2370)

kylo252 il y a 3 ans
Parent
commit
c958e4b3ae
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      lua/lvim/plugin-loader.lua

+ 3 - 0
lua/lvim/plugin-loader.lua

@@ -88,6 +88,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"