Comments (4)
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({
{ name = 'buffer', option = {keyword_length = 6} }
}
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.
from cmp-nvim-lsp.
Done!
from cmp-nvim-lsp.
Your description is hard to understand for me.
Can you describe the feature more clearly?
It is keyword length sort?
Note: It seems keyword length option in buffer source for other sources.
from cmp-nvim-lsp.
OK. The description is clear.
Note: The issue title is not clear for me.
It should be renamed.
My suggestion is:
keyword_length option for other sources
from cmp-nvim-lsp.
Related Issues (20)
- Filter some suggestions provided by cmp-nvim-lsp HOT 1
- Cause lags / delay with Telescope & UI
- Hide warning and error show on editor HOT 3
- LSP suggestions don't appear in certain files, although LS loaded
- migrate to Lazy.nvim and module 'cmp_nvim_lsp' not found HOT 1
- Filter out suggestion based on current typing characters HOT 1
- Error thrown when using omnicompletion HOT 1
- How to show "Auto import from ..." in the documentation window?
- Won't send more requests if **one** character no completions. HOT 7
- lsp completion items not updating unless I restart the server HOT 7
- `#` symbol doesn't start the cmp menu in a CSS property
- Option to exclude a client completely
- How to install cmp-nvim-lsp HOT 2
- Use of after directory, antipattern.
- entry_filter has no effect
- Confirmation behavior `Insert` does not work
- HTML & CSS LSP Autocompletion isn't working
- Can't stop suggestion box from closing when entering whitespace
- cmp_nvim_lsp not found HOT 3
- Disable JSX snippets HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmp-nvim-lsp.