add theme to user_config

This commit is contained in:
siduck76 2021-07-31 20:44:42 +05:30
parent 29f04fcc9d
commit bcbde0e1a2
2 changed files with 12 additions and 4 deletions

View File

@ -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 if present2 then
base16(base16.themes["onedark"], true) base16(base16.themes[chad_theme], true)
require "highlights" require "highlights"
return true return true
else else

7
lua/user_config.lua Normal file
View File

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