neovim-config/lua/theme.lua

16 lines
390 B
Lua
Raw Normal View History

2021-08-12 11:58:03 +00:00
local chad_theme = require("chadrc").ui.theme
2021-07-31 15:14:42 +00:00
vim.g.nvchad_theme = chad_theme
2021-08-14 19:14:55 +00:00
-- this stores the current set theme, if later theme switcher is used but not set to default
vim.g.current_nvchad_theme = chad_theme
local present, base16 = pcall(require, "base16")
if present then
base16(base16.themes(chad_theme), true)
require "highlights"
return true
else
return false
end