feat: Do not depend on user config | Fix merging of configs

because it is a user config, so our config shoudn't break even we if dont have it

use our own table merge function

move loading config to a function

use a global variable to store the config, so no need to call the table function everytime
This commit is contained in:
Akianonymus
2021-08-19 08:51:42 +05:30
committed by siduck76
parent 02f0122ab4
commit 7753e03b9e
7 changed files with 98 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
local chad_theme = require("chadrc").ui.theme
local chad_theme = require("utils").load_config().ui.theme
vim.g.nvchad_theme = chad_theme
local present, base16 = pcall(require, "base16")