tomtom/quickfixsigns_vim

make vcs signs auto refresh after :Gwrite and :Gcommit.

stardiviner opened this issue · 3 comments

Just like the title. those +,-,= signs in numberline does not automatically refresh after execute fugitive script's commands: :Gwrite and :Gcommit. They will disappear until I execute :w.

Hi,

I'm not sure why but it seems to me that the +,-,= lines get updated with the current version of quickfixsigns and fugitive from github, don't they? Which version of these plugins do you use? If it still doesn't work with the current versions, you'd have to tell me step by step what you are doing, what goes wrong, what outcome you would expect etc.

Regads

I use fugitive with quickfixsigns, I usually use :Gdiff, then use dp, do to do diff.
for example:
when I dp from disk version to put diff to Git repo version, then I switch window from one to another, quickfixsigns should update signs, because I set

g:quickfixsigns_events = (['BufEnter', 'BufLeave',
            \ 'CursorHold', 'CursorHoldI',                                  
            \ 'InsertLeave', 'InsertEnter', 'InsertChange'])  

There is a BufEnter and BufLeave event, so signs should be updated when switch windows. but it does not.

You have to add those events to g:quickfixsigns_class_vcsdiff.event. Please define g:quickfixsigns_class_vcsdiff in your vimrc file.

Displaying signs for vcs changes is expensive and should be done sparingly.