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

debounce option in copilot.lua doesn't seem to apply for cmp suggestions #106

Open
ravibrock opened this issue Apr 21, 2024 · 0 comments
Open

Comments

@ravibrock
Copy link

Hi! I'm opening this issue since I was hoping for a way to ask Copilot to wait for some x amount of time before bringing up suggestions again. I've found that I often run into an issue where I'll be typing, say, function() and then I'll hit <CR> to get a newline and continue typing the function body. However, because I have <CR> mapped to cmp confirmation and Copilot typically generates a suggestion by the time I've typed func..., I end up confirming that suggestion rather than just getting a newline. My idea was an option (that ideally debounce would work for) where typing a character cancels the Copilot suggestion for the specified number of milliseconds, so that if I'm typing quickly Copilot suggestions don't appear but if I stop typing then the Copilot suggestion appears. I hope that makes sense. Thank you!

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