Skip to content

Commit

Permalink
fix(render): disable underline for diagnostics (#1478)
Browse files Browse the repository at this point in the history
Problem: On current Nvim nightlies, a regression in a
`vim.highlight.range()` refactor makes underlines for diagnostics at end
of line extend into the next line, leading to visual artifacts in the
update view.

Solution: Suppress underlines for diagnostics, as they are not wanted
anyway.
  • Loading branch information
clason authored May 26, 2024
1 parent 98210e2 commit ea7b9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function M:update()
diag.lnum = diag.row - 1
return diag
end, self._diagnostics),
{ signs = false, virtual_text = true }
{ signs = false, virtual_text = true, underline = false }
)
end

Expand Down

0 comments on commit ea7b9c3

Please sign in to comment.