Bug fix: componnet highlight not blending

This commit is contained in:
shadmansaleh 2021-03-14 20:13:46 +06:00
parent 332f488e24
commit b79fd4cc24
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ function M.create_component_highlight_group(color , highlight_tag, options)
local fg = (color.fg or default_color_table.fg) local fg = (color.fg or default_color_table.fg)
-- Check if it's same as normal mode if it is no need to create aditional highlight -- Check if it's same as normal mode if it is no need to create aditional highlight
if mode ~= 'normal' then if mode ~= 'normal' then
if bg ~= normal_hl.bg and fg ~= normal_hl.fg then if bg ~= normal_hl.bg or fg ~= normal_hl.fg then
highlight(table.concat(highlight_group_name, '_'), fg, bg, color.gui) highlight(table.concat(highlight_group_name, '_'), fg, bg, color.gui)
end end
else else