add theme toggler (#245)

This commit is contained in:
siduck76
2021-08-15 00:44:55 +05:30
parent ea0a221230
commit 154ba7d419
5 changed files with 40 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
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