fix(highlight): respect user boolean (#451)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
96d060db83
commit
d520f09333
@ -84,10 +84,11 @@ M.conflict_highlights = function(opts)
|
|||||||
if hl.link ~= nil then
|
if hl.link ~= nil then
|
||||||
api.nvim_set_hl(0, hl.name, { bg = get_shade(hl), default = true })
|
api.nvim_set_hl(0, hl.name, { bg = get_shade(hl), default = true })
|
||||||
else
|
else
|
||||||
|
local bold = get_highlights(key, hl).bold
|
||||||
api.nvim_set_hl(
|
api.nvim_set_hl(
|
||||||
0,
|
0,
|
||||||
hl.name,
|
hl.name,
|
||||||
{ bg = get_default_colors(key, hl), default = true, bold = get_highlights(key, hl).bold or hl.bold }
|
{ bg = get_default_colors(key, hl), default = true, bold = bold ~= nil and bold or hl.bold }
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user