mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 05:20:38 +00:00
add theme to user_config
This commit is contained in:
parent
29f04fcc9d
commit
bcbde0e1a2
2 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
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 a new issue