15 lines
390 B
Lua
15 lines
390 B
Lua
local chad_theme = require("chadrc").ui.theme
|
|
|
|
vim.g.nvchad_theme = chad_theme
|
|
-- 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
|