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

Minimum number of chars for completion #1922

Open
AllergicMushroom opened this issue May 12, 2024 · 0 comments
Open

Minimum number of chars for completion #1922

AllergicMushroom opened this issue May 12, 2024 · 0 comments

Comments

@AllergicMushroom
Copy link

I am trying to construct my Neovim setup with nvim-cmp and I want to configure it so that the floating window of propositions only opens after two letters of the word are typed.

I tried the following :

require('cmp').setup({ ... completion = { keyword_length = 2 } })

It almost worked.
If I type two letters, the floating window appears with useful suggestions.
If I type one letter, the floating window does not appear.
If I type nothing, the floating window appears with a lot of bloat. I'm trying to get rid of this case as well.

Because I use nvim-cmp and copilot, both with the same key for confirming, the floating window appearing when nothing is typed is extremely cumbersome.

Is there another setting for the floating window appearing only after x letters have been typed ?

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