add theme to user_config
This commit is contained in:
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
|
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
7
lua/user_config.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
local M = {
|
||||||
|
ui = {
|
||||||
|
theme = "norchad"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return M
|
Loading…
Reference in New Issue
Block a user