瀏覽代碼

fix: automatically set colorscheme (#2370)

kylo252 3 年之前
父節點
當前提交
c958e4b3ae
共有 1 個文件被更改,包括 3 次插入0 次删除
  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"