add theme to user_config

pull/207/head
siduck76 3 years ago
parent 29f04fcc9d
commit bcbde0e1a2

@ -1,9 +1,10 @@
vim.g.nvchad_theme = "onedark"
local chad_theme = require("user_config").ui.theme
local present, base16 = pcall(require, "base16")
vim.g.nvchad_theme = chad_theme
local present2, base16 = pcall(require, "base16")
if present then
base16(base16.themes["onedark"], true)
if present2 then
base16(base16.themes[chad_theme], true)
require "highlights"
return true
else

@ -0,0 +1,7 @@
local M = {
ui = {
theme = "norchad"
}
}
return M
Loading…
Cancel
Save