From f4182fb7ce634667daab7ae0d04d982a8ddc9d8e Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Tue, 12 Sep 2023 14:52:27 -0700 Subject: [PATCH] neovim: Remove gitsigns delay --- neovim/lua/plugins/ide.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/neovim/lua/plugins/ide.lua b/neovim/lua/plugins/ide.lua index 1709694..4ae7085 100644 --- a/neovim/lua/plugins/ide.lua +++ b/neovim/lua/plugins/ide.lua @@ -34,12 +34,10 @@ return { local gitsigns = require("gitsigns") local toggle = function(value) - -- Order matters here! If I toggle signs first (before blame), - -- it seems like the blame gets an extra chance to render while - -- it's being disabled, which leaves a ghost blame around - -- forever. If I toggle blame first, it stays truly off and - -- there aren't any ghost signs (or at least they're not - -- obvious because the sign column goes away). + -- BUG: (?) If the blame delay is not zero, the setting can + -- enter a race with cursor movement and leave a ghost blame in + -- the buffer. + gitsigns.toggle_current_line_blame(value) gitsigns.toggle_signs(value) end @@ -62,7 +60,7 @@ return { current_line_blame_opts = { virt_text = true, virt_text_pos = 'eol', - delay = 500, + delay = 0, ignore_whitespace = false, }, },