From ea7b9c3c3fd9026e1a5ae27950585df9a42ccd5b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 26 May 2024 15:21:58 +0200 Subject: [PATCH] fix(render): disable underline for diagnostics (#1478) 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