|
|
|
@ -1,5 +1,7 @@
|
|
|
|
local M = {}
|
|
|
|
local M = {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local config = require("core.utils").load_config()
|
|
|
|
|
|
|
|
|
|
|
|
M.get_theme_tb = function(name, type)
|
|
|
|
M.get_theme_tb = function(name, type)
|
|
|
|
local default_path = "hl_themes." .. name
|
|
|
|
local default_path = "hl_themes." .. name
|
|
|
|
local user_path = "custom.themes." .. name
|
|
|
|
local user_path = "custom.themes." .. name
|
|
|
|
@ -51,7 +53,7 @@ M.load_theme = function()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
M.override_theme = function(default_theme, theme_name)
|
|
|
|
M.override_theme = function(default_theme, theme_name)
|
|
|
|
local changed_themes = nvchad.load_config().ui.changed_themes
|
|
|
|
local changed_themes = config.ui.changed_themes
|
|
|
|
|
|
|
|
|
|
|
|
if changed_themes[theme_name] then
|
|
|
|
if changed_themes[theme_name] then
|
|
|
|
return M.merge_tb(default_theme, changed_themes[theme_name])
|
|
|
|
return M.merge_tb(default_theme, changed_themes[theme_name])
|
|
|
|
@ -61,7 +63,7 @@ M.override_theme = function(default_theme, theme_name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
M.toggle_theme = function()
|
|
|
|
M.toggle_theme = function()
|
|
|
|
local themes = nvchad.load_config().ui.theme_toggle
|
|
|
|
local themes = config.ui.theme_toggle
|
|
|
|
|
|
|
|
|
|
|
|
local theme1 = themes[1]
|
|
|
|
local theme1 = themes[1]
|
|
|
|
local theme2 = themes[2]
|
|
|
|
local theme2 = themes[2]
|
|
|
|
|