david-kunz / cmp-npm Goto Github PK
View Code? Open in Web Editor NEWAn additional source for nvim-cmp to autocomplete packages and its versions
License: The Unlicense
An additional source for nvim-cmp to autocomplete packages and its versions
License: The Unlicense
Would it be possible to add a config option to only show the latest version?
This would replicate the behaviour of VSCode and already solve my issues with the sorting not being completely correct.
Say the latest version is 1.2.3
, vscode shows these three completions:
1.2.3
^1.2.3
~1.2.3
in that order.
What do you think about it?
There is a way to write sorting functions for nvim-cmp
.
Checkout examples:
Please, add info on caching. Thanks!
When I try to complete a package that has a two-digit version number (higher than 9), it shows me the single digit minor versions first and then the higher ones after them. This happens multiple times for every two-digit version in major, minor and patch.
See:
I specifically made long pauses in the video, but for some reason it does not work properly.
Hey,
thank you for such a great plugin! It's especially useful for me because in my projects I work with lerna and I have to add/update packages manually and cannot do it via npm/yarn update itself.
One of my feature requests is to add filtering options to show/disable insiders/dev/beta/rc versions of a package in results. It could limit results only to stable versions of the package which we want to take. Currently, I can show a very long list of non-stable versions like here:
I'm not good in Lua at all yet, but I can start working on that and make a PR in a couple of days. It would be fun for me to start with lua in such an example which doesn't seem to be very hard (maybe via grep/awk or lua has some specific method for that - idk):
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.