summaryrefslogtreecommitdiff
path: root/lua/lvim/plugin-loader.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-12-03 18:56:31 +0100
committerGitHub <[email protected]>2021-12-03 18:56:31 +0100
commitfe95dffe41455139898f2125b176a76a97331c95 (patch)
tree992b3bd3b3abb5a000a1d1dbfd0ec3e7c4eab8e5 /lua/lvim/plugin-loader.lua
parentb6d1aa8a314f849e4e98e9fb541e6ea403e01b6f (diff)
fix: no restart required when changing colorscheme (#2026)
Diffstat (limited to 'lua/lvim/plugin-loader.lua')
-rw-r--r--lua/lvim/plugin-loader.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua
index 1ad4266b..5bde8b1b 100644
--- a/lua/lvim/plugin-loader.lua
+++ b/lua/lvim/plugin-loader.lua
@@ -83,6 +83,10 @@ function plugin_loader.load(configurations)
Log:warn "problems detected while loading plugins' configurations"
Log:trace(debug.traceback())
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
function plugin_loader.get_core_plugins()