tpope/vim-fugitive

G fetch branch autocomplete laggy

Closed this issue · 1 comments

First of all thanks for making this great plugin!

Issue

When trying to sync a remote branch with a local one, I use the following command:

:G fetch origin development:development

However, when my cursor gets about here:

:G fetch origin █

And I continue to type, it just freezes and tries to fetch branch autocomplete suggestions.
Typing or deleting any charcters causes the autocomplete to re-trigger so it's just continues to lag

I am using Neovim, so I'm unsure if this laggy behaviour happens in Vim as well.

Intrestingly I haven't observed a similar behaviour in any other commands so far.
Typing a checkout command is very smooth in comparison.

G checkout development

Even with origin prefixed

G checkout origin/development

Is it that all other commands rely on prefetched branch data and G fetch live queries all the branch data which causes the lag?

Excuse me, this issue was actually caused by
https://github.com/hrsh7th/cmp-cmdline

Closing the issue