mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 15:19:26 +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"
|
local Log = require "lvim.core.log"
|
||||||
Log:debug "Starting LunarVim"
|
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"
|
local commands = require "lvim.core.commands"
|
||||||
commands.load(commands.defaults)
|
commands.load(commands.defaults)
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,10 @@ function plugin_loader.load(configurations)
|
||||||
Log:warn "problems detected while loading plugins' configurations"
|
Log:warn "problems detected while loading plugins' configurations"
|
||||||
Log:trace(debug.traceback())
|
Log:trace(debug.traceback())
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
function plugin_loader.get_core_plugins()
|
function plugin_loader.get_core_plugins()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue