fix: no restart required when changing colorscheme (#2026)

This commit is contained in:
kylo252 2021-12-03 18:56:31 +01:00 committed by GitHub
parent b6d1aa8a31
commit fe95dffe41
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -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)

View file

@ -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()