Implement theme switcher
using telescope picker ask if want to change default theme, change value in user_config.lua load it as a telescope extension live preview of themes Co-authored-by: Galen Rowell <growell3@gmail.com>
This commit is contained in:
committed by
Galen Rowell
parent
7affb8cbfb
commit
a6ab121d12
@@ -1,9 +1,9 @@
|
||||
local chad_theme = require("user_config").ui.theme
|
||||
|
||||
vim.g.nvchad_theme = chad_theme
|
||||
local present2, base16 = pcall(require, "base16")
|
||||
local present, base16 = pcall(require, "base16")
|
||||
|
||||
if present2 then
|
||||
if present then
|
||||
base16(base16.themes[chad_theme], true)
|
||||
require "highlights"
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user