mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix: no restart required when changing colorscheme (#2026)
This commit is contained in:
parent
b6d1aa8a31
commit
fe95dffe41
2 changed files with 4 additions and 3 deletions
3
init.lua
3
init.lua
|
@ -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)
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue