blink.cmp icon indicating copy to clipboard operation
blink.cmp copied to clipboard

Snippet matcher sometimes doesn't find exact match when max_typos = 0

Open niba opened this issue 7 months ago • 0 comments

Make sure you have done the following

  • [x] Updated to the latest version of blink.cmp
  • [x] Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

I'm using native snippets and friendly snippets.

This bug only happens when you have max_typos set to 0

I created two custom snippets with the following prefixes: foo and scri.

Image

when I type foo I get a snippet suggestion

Image

However, when I type scri I don't get a suggestion

Image

but when I type scr I do get a suggestion for scri

Image

Relevant configuration

max_typos = function(keyword)
          return 0
        end,

neovim version

0.11.1

blink.cmp version

1.3.1

niba avatar May 15 '25 13:05 niba