mirror of
https://github.com/gabehf/base46.git
synced 2026-03-09 23:48:16 -07:00
refactor: utils are in the global scope now
This commit is contained in:
parent
a0d1322b9e
commit
8ac4b01da2
4 changed files with 12 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ M.get_colors = function(type)
|
|||
if vim.g.nvchad_theme then
|
||||
name = vim.g.nvchad_theme
|
||||
else
|
||||
name = require("core.utils").load_config().ui.theme
|
||||
name = nvchad.load_config().ui.theme
|
||||
vim.g.nvchad_theme = name
|
||||
end
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ M.load_theme = function()
|
|||
end
|
||||
|
||||
M.override_theme = function(default_theme, theme_name)
|
||||
local changed_themes = require("core.utils").load_config().ui.changed_themes
|
||||
local changed_themes = nvchad.load_config().ui.changed_themes
|
||||
|
||||
if changed_themes[theme_name] then
|
||||
return M.merge_tb(default_theme, changed_themes[theme_name])
|
||||
|
|
@ -62,7 +62,7 @@ M.override_theme = function(default_theme, theme_name)
|
|||
end
|
||||
|
||||
M.toggle_theme = function()
|
||||
local themes = require("core.utils").load_config().ui.theme_toggle
|
||||
local themes = nvchad.load_config().ui.theme_toggle
|
||||
|
||||
local theme1 = themes[1]
|
||||
local theme2 = themes[2]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue