run load_config() before reloading highlights onsaving chadrc
This commit is contained in:
parent
1dd3bf5a18
commit
acfc5626ac
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue