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
keyword_length option for other sources #17
Comments
Your description is hard to understand for me. Note: It seems keyword length option in buffer source for other sources. |
Apologies, I thought referencing the original issue would make it clear. I hope the following is makes it clear. In the (resolved) issue referenced above, I was asking if it was possible to add a configuration to sources that would exclude all suggestions of words that were less than X characters in length (the feature being able to change the value of X). After this request, this configuration was added to https://github.com/hrsh7th/cmp-buffer The new option was keyword_length. So, if add the following to my cmp_config sources = cmp.config.sources({ then all words of length < 6 are not included as suggestions in the drop down menu. This has been a fantastic feature for me. This has been implemented as a configuration option in buffer sources but I was wondering if it is possible to add it as a configuration option in other sources like https://github.com/hrsh7th/cmp-nvim-lsp or https://github.com/kdheepak/cmp-latex-symbols for instance. I should also note, I (qualitatively) have found this feature has decreased the lag I sometimes experience while typing when I am working in a really large file. This is partially why I was interested in having this feature in other sources. |
OK. The description is clear. Note: The issue title is not clear for me. My suggestion is: |
Done! |
Hi there,
Again, thank you for all your work on this plugin. A while ago you kindly fixed an issue I raised here
hrsh7th/nvim-cmp#444
I was wondering how difficult it would be to add this sort of feature to other sources? Like nvim-lsp or latex-symbols for example?
Thanks again!
The text was updated successfully, but these errors were encountered: