@@ -84,7 +84,7 @@ local function create_highlight_groups(colors, blends, transparent)
84
84
for severity , name in pairs (SEVERITY_NAMES ) do
85
85
-- Cursor line highlights
86
86
hi [HIGHLIGHT_PREFIX .. name .. " CursorLine" ] = {
87
- bg = colors .background ,
87
+ bg = colors .cursor_line . bg ,
88
88
fg = colors [string.lower (name )].fg ,
89
89
italic = colors [string.lower (name )].italic ,
90
90
}
@@ -162,6 +162,7 @@ function M.setup_highlights(blend, default_hi, transparent)
162
162
hint = get_highlight (default_hi .hint ),
163
163
ok = get_highlight (default_hi .ok ),
164
164
arrow = get_highlight (default_hi .arrow ),
165
+ cursor_line = get_highlight (" CursorLine" ),
165
166
}
166
167
167
168
if not transparent then
207
208
function M .get_diagnostic_highlights (blend_factor , diag_ret , curline , index_diag )
208
209
local diag_hi , diag_inv_hi , body_hi = M .get_diagnostic_highlights_from_severity (diag_ret .severity )
209
210
210
- if index_diag == 1 and blend_factor == 0 then
211
+ if ( diag_ret . line and diag_ret . line == curline ) and index_diag == 1 and blend_factor == 0 then
211
212
diag_hi = diag_hi .. " CursorLine"
212
213
end
213
214
0 commit comments