prioritize nvchad_theme global when getting theme name

v2.5
siduck 4 years ago
parent a07bc6cd31
commit f4500d63ea

@ -1,8 +1,14 @@
local M = {}
M.get_colors = function(type)
local name = require("core.utils").load_config().ui.theme
vim.g.nvchad_theme = name
local name
if vim.g.nvchad_theme then
name = vim.g.nvchad_theme
else
name = require("core.utils").load_config().ui.theme
vim.g.nvchad_theme = name
end
-- theme paths
local default_path = "hl_themes." .. name

@ -1,3 +1,5 @@
-- returns a huge table of all highlight groups & their colors
local merge_tb = require("base16").merge_tb
local highlights = {}

Loading…
Cancel
Save