From c958e4b3ae6858ef6770333e21ab389ded60b400 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sun, 20 Mar 2022 11:47:08 +0100 Subject: fix: automatically set colorscheme (#2370) --- lua/lvim/plugin-loader.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua/lvim/plugin-loader.lua') diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua index a017b9b1..5208d5bf 100644 --- a/lua/lvim/plugin-loader.lua +++ b/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" -- cgit v1.2.3