nvim-cmp icon indicating copy to clipboard operation
nvim-cmp copied to clipboard

Fuzzy Finding

Open Dosx001 opened this issue 3 years ago • 3 comments

So nvim-cmp broke for me when I updated to nvim 0.7. I got everything back and running but I'm not so sure about fuzzy finding. So I was hoping I could get an explanation on how fuzzy finding works in nvim-cmp.

For example, here fuzzy finding working in action and this is the behavior I am expecting. image

Now if add an s to dfa to make dfas I expect nvim-cmp to get give me defaults, the last result of the previous image. image

But nvim-cmp fails to do so.

Also, I notice that fuzzy finding works out of the box, are there maybe options I can change to edit the fuzzy finding behavior?

Dosx001 avatar Apr 24 '22 16:04 Dosx001

Fuzzy finding is difficult, and finicky... You can try using https://github.com/tzachar/cmp-fuzzy-buffer which uses either fzf of fzy to do the hard lifting

tzachar avatar Apr 25 '22 07:04 tzachar

OK. I'll create new option.

hrsh7th avatar May 01 '22 06:05 hrsh7th

Wht not use nvims internal matchfuzzypos?

tzachar avatar May 01 '22 06:05 tzachar