mirror of
https://github.com/gabehf/base46.git
synced 2026-03-08 15:08:17 -07:00
fix: Assign colors to copy instead of tb
This commit is contained in:
parent
2095bdd736
commit
95056fdc15
1 changed files with 3 additions and 2 deletions
|
|
@ -27,8 +27,9 @@ end
|
|||
-- hl_add = { abc = { bg = "one_bg" }} -> bg = colors.one_bg
|
||||
M.turn_str_to_color = function(tb)
|
||||
local colors = M.get_theme_tb "base_30"
|
||||
local copy = vim.deepcopy(tb)
|
||||
|
||||
for _, hlgroups in pairs(tb) do
|
||||
for _, hlgroups in pairs(copy) do
|
||||
for opt, val in pairs(hlgroups) do
|
||||
if
|
||||
(opt == "fg" or opt == "bg" or opt == "sp") and not (val:sub(1, 1) == "#" or val == "none" or val == "NONE")
|
||||
|
|
@ -38,7 +39,7 @@ M.turn_str_to_color = function(tb)
|
|||
end
|
||||
end
|
||||
|
||||
return tb
|
||||
return copy
|
||||
end
|
||||
|
||||
M.extend_default_hl = function(highlights)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue