Ver código fonte

fix: automatically set colorscheme (#2370)

kylo252 3 anos atrás
pai
commit
c958e4b3ae
1 arquivos alterados com 3 adições e 0 exclusões
  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"