Code Monkey home page Code Monkey logo

Comments (4)

fastbodin avatar fastbodin commented on July 30, 2024 1

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.

fastbodin avatar fastbodin commented on July 30, 2024 1

Done!

from cmp-nvim-lsp.

Shougo avatar Shougo commented on July 30, 2024

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.

Shougo avatar Shougo commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.