-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vim-fugitive
deletes hunk summary of vim-gitgutter
after updatetime
passed the first time
#2398
Comments
and what does git status show for that repository in question? |
my guess is, when vim starts, it doesn't know the status so you get the clean state. Vim will however spin up some async jobs to get a correct status and my guess is you see those updated on the next redraw (e.g. when you press a key). |
If vim-gitgutter is installed but vim-fugitive is not, I get the expected hunk summary If vim-gitgutter is not installed but vim-fugitive is, I get no hunk summary, of course. The branch name appears immediately after opening the file and the dirty indicator appears only after moving the cursor (or pressing a key). Reminder: If both are installed, the "default" hunk summary and branch name appear immediately, the dirty indicator appears after Interesting. Can you make something of this? |
I have never noticed. As I said, my guess is that this is related to the async jobs running. |
Also, As far as as asynchronous processing is concerned, I don't think there is anything that can be done on the vim-airline side, as some lag depends on the specs of the machine. |
environment
Installed in
~/.vim/pack/schlimmchen/start/
:OS: Ubuntu 20.10
vimrc: ~/.vimrc is empty
Airline configuration: default
Terminal: gnome-terminal, $TERM=xterm-256color, t_Co=256
setup
Navigate the terminal to a git repository with unstaged changes. Open a file with unstages changes. Observe the statusline (make sure
updatetime
is not too low).actual behavior
The statusline initializes with a hunk summary (0/0/0) (from vim-gitgutter?) and the branch symbol and name (from vim-fugitive):
updatetime
milliseconds pass. The sign column appears (not visible in the screenshot), and the statusline has no hunk summary any more, but the branch is marked as dirty:The cursor is moved (or any key is pressed). The hunk summary re-appears with the expected values.
expected behavior
updatetime
should be small so that the gitgutter signs and the mark indicating a dirty branch are updated fast. But I am confused as to why my statusbar changes again when navigating the file after opening it. I would expect the hunk status to always be present and to be updated alongside the branch-dirty-mark the first time thatupdatetime
milliseconds passed.vim-figutive
When "uninstalling" vim-fugitive, the hunk summary appears with 0/0/0 values when opening the file and updates when
updatetime
milliseconds passed. So I guess there is some kind of incompatibility?The text was updated successfully, but these errors were encountered: