neovim: Remove gitsigns delay
This commit is contained in:
parent
e5883296c2
commit
f4182fb7ce
1 changed files with 5 additions and 7 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue