Skip to content

How to deprioritize exact matches #1393

Answered by chrisgrieser
chrisgrieser asked this question in Q&A
Discussion options

You must be logged in to vote

okay, I actually found it myself by searching the source code for "exact" 😝

for anyone finding this via search: in the cmp.setup() call, you have to modify the list of comparators. I just copied the list but left out compare.exact, which disabled prioritizing exact matches :)
https://github.com/hrsh7th/nvim-cmp/blob/main/lua/cmp/config/default.lua#L59-L69

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@doulighan
Comment options

@chrisgrieser
Comment options

@Sam-programs
Comment options

Answer selected by chrisgrieser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants