minor fixes

This commit is contained in:
siduck 2022-05-15 14:43:51 +05:30
parent 897c90cc79
commit 9d23caba95
3 changed files with 26 additions and 4 deletions

View file

@ -37,7 +37,11 @@ if ui.hl_override then
for group, _ in pairs(user_highlights) do
for key, color in pairs(user_highlights[group]) do
if key == "fg" or key == "bg" then
user_highlights[group][key] = colors[color]
if color:sub(1, 1) == "#" then
user_highlights[group][key] = color
else
user_highlights[group][key] = colors[color]
end
end
end
end