1
0
Fork 0

neovim: Remove gitsigns delay

This commit is contained in:
Jeremy Kaplan 2023-09-12 14:52:27 -07:00
commit f4182fb7ce

View file

@ -34,12 +34,10 @@ return {
local gitsigns = require("gitsigns") local gitsigns = require("gitsigns")
local toggle = function(value) local toggle = function(value)
-- Order matters here! If I toggle signs first (before blame), -- BUG: (?) If the blame delay is not zero, the setting can
-- it seems like the blame gets an extra chance to render while -- enter a race with cursor movement and leave a ghost blame in
-- it's being disabled, which leaves a ghost blame around -- the buffer.
-- 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).
gitsigns.toggle_current_line_blame(value) gitsigns.toggle_current_line_blame(value)
gitsigns.toggle_signs(value) gitsigns.toggle_signs(value)
end end
@ -62,7 +60,7 @@ return {
current_line_blame_opts = { current_line_blame_opts = {
virt_text = true, virt_text = true,
virt_text_pos = 'eol', virt_text_pos = 'eol',
delay = 500, delay = 0,
ignore_whitespace = false, ignore_whitespace = false,
}, },
}, },