diff options
author | kylo252 <[email protected]> | 2021-12-03 18:56:31 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-03 18:56:31 +0100 |
commit | fe95dffe41455139898f2125b176a76a97331c95 (patch) | |
tree | 992b3bd3b3abb5a000a1d1dbfd0ec3e7c4eab8e5 /lua | |
parent | b6d1aa8a314f849e4e98e9fb541e6ea403e01b6f (diff) |
fix: no restart required when changing colorscheme (#2026)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lvim/plugin-loader.lua | 4 |
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() |