7753e03b9e
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
12 lines
265 B
Lua
12 lines
265 B
Lua
local chad_theme = require("utils").load_config().ui.theme
|
|
vim.g.nvchad_theme = chad_theme
|
|
|
|
local present, base16 = pcall(require, "base16")
|
|
|
|
if present then
|
|
base16(base16.themes(chad_theme), true)
|
|
require "highlights"
|
|
return true
|
|
else
|
|
return false
|
|
end
|