Skip to content
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

G fetch branch autocomplete laggy #2340

Closed
Dmitrev opened this issue Oct 4, 2024 · 1 comment
Closed

G fetch branch autocomplete laggy #2340

Dmitrev opened this issue Oct 4, 2024 · 1 comment

Comments

@Dmitrev
Copy link

Dmitrev commented Oct 4, 2024

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?

@Dmitrev
Copy link
Author

Dmitrev commented Oct 4, 2024

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

Closing the issue

@Dmitrev Dmitrev closed this as completed Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant