Skip to content

Commit 0952dfb

Browse files
committed
fix: set transparent when blend factor is 0
1 parent 42d5908 commit 0952dfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/tiny-inline-diagnostic/highlights.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ function M.setup_highlights(blend, default_hi, transparent)
162162
transparent = false
163163
end
164164

165+
if blend.factor == 0 then
166+
transparent = true
167+
end
168+
165169
-- Get special colors
166170
colors.background = get_background_color(default_hi.background)
167171
colors.mixing_color = get_mixing_color(default_hi.mixing_color)

0 commit comments

Comments
 (0)