my-nvim-setup/lua/theme.lua

13 lines
261 B
Lua
Raw Normal View History

2021-07-31 16:14:42 +01:00
local chad_theme = require("user_config").ui.theme
2021-07-31 16:14:42 +01:00
vim.g.nvchad_theme = chad_theme
local present, base16 = pcall(require, "base16")
if present then
2021-07-31 16:14:42 +01:00
base16(base16.themes[chad_theme], true)
require "highlights"
return true
else
return false
end