From e5ba539d4580543fe30980c7cdef0c1708a0dd11 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 26 May 2024 13:07:33 +0200 Subject: [PATCH] fix(render): disable underline for diagnostics 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. --- lua/lazy/view/render.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index 5d7e197..a34456c 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -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