2021-08-12 12:58:03 +01:00
|
|
|
local chad_theme = require("chadrc").ui.theme
|
2021-07-15 16:47:47 +01:00
|
|
|
|
2021-07-31 16:14:42 +01:00
|
|
|
vim.g.nvchad_theme = chad_theme
|
2021-08-14 20:14:55 +01: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
|
|
|
|
|
2021-07-30 18:11:56 +01:00
|
|
|
local present, base16 = pcall(require, "base16")
|
2021-07-17 12:14:52 +01:00
|
|
|
|
2021-07-30 18:11:56 +01:00
|
|
|
if present then
|
2021-08-10 12:19:18 +01:00
|
|
|
base16(base16.themes(chad_theme), true)
|
2021-07-19 01:58:28 +01:00
|
|
|
require "highlights"
|
2021-07-15 16:47:47 +01:00
|
|
|
return true
|
2021-07-17 12:14:52 +01:00
|
|
|
else
|
|
|
|
return false
|
2021-07-15 16:47:47 +01:00
|
|
|
end
|