summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-03-20 11:47:08 +0100
committerGitHub <[email protected]>2022-03-20 14:17:08 +0330
commitc958e4b3ae6858ef6770333e21ab389ded60b400 (patch)
treed980c4f11d9f9623f0cf20da5109e55000e3b730 /lua
parentc946ddda812c5c2d217061a9016eb8001970d659 (diff)
fix: automatically set colorscheme (#2370)
Diffstat (limited to 'lua')
-rw-r--r--lua/lvim/plugin-loader.lua3
1 files changed, 3 insertions, 0 deletions
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"