hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
8.08k stars 400 forks source link

Fuzzy Finding #934

Open Dosx001 opened 2 years ago

Dosx001 commented 2 years ago

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?

tzachar commented 2 years ago

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

hrsh7th commented 2 years ago

OK. I'll create new option.

tzachar commented 2 years ago

Wht not use nvims internal matchfuzzypos?