run load_config() before reloading highlights onsaving chadrc

This commit is contained in:
siduck 2023-03-10 11:49:54 +05:30
parent 1dd3bf5a18
commit acfc5626ac

View file

@ -97,6 +97,8 @@ vim.api.nvim_create_autocmd("BufWritePost", {
require("plenary.reload").reload_module(file) require("plenary.reload").reload_module(file)
require("plenary.reload").reload_module "custom.chadrc" require("plenary.reload").reload_module "custom.chadrc"
config = require("core.utils").load_config()
vim.g.nvchad_theme = config.ui.theme vim.g.nvchad_theme = config.ui.theme
vim.g.transparency = config.ui.transparency vim.g.transparency = config.ui.transparency