-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Crate versions are lexicographically sorted in completion #69
Comments
I've also noticed that, but I'm not exactly sure what's the cause. We set Here is the line we set crates.nvim/teal/crates/src/common.tl Line 39 in 3648f87
Here is the line This needs some more investigation, I'll look into it sometime. |
Found the issue, seems like the default config excludes scoring/sorting by |
So whats the conclusion of this? Would it possible to patch cmp to enable |
I don't know, there is no answer to the issue I opened on the |
Thank you. Do you mind pasting the issue link in nvim-cmp here? Just for future reference |
It's actually already linked above |
Current behavior
The crates versions supplied to the completion are sorted lexicographically, which causes
0.1.9
to be given higher priority over0.1.11
which is buries underneath the0.1.1
version.Expected behavior
The crates versions are returned in semantic version order, as the user most likely want't the most recent version when adding a crate.
E.g;
0.1.11
,0.1.10
,0.1.9
etcAdditional context/Screenshots
Neovim version
nvim --version
The text was updated successfully, but these errors were encountered: