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 | |
| parent | b6d1aa8a314f849e4e98e9fb541e6ea403e01b6f (diff) | |
fix: no restart required when changing colorscheme (#2026)
| -rw-r--r-- | init.lua | 3 | ||||
| -rw-r--r-- | lua/lvim/plugin-loader.lua | 4 | 
2 files changed, 4 insertions, 3 deletions
| @@ -15,9 +15,6 @@ require("lvim.plugin-loader").load { plugins, lvim.plugins }  local Log = require "lvim.core.log"  Log:debug "Starting LunarVim" -vim.g.colors_name = lvim.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs. -vim.cmd("colorscheme " .. lvim.colorscheme) -  local commands = require "lvim.core.commands"  commands.load(commands.defaults) 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() | 
