roxma / nvim-completion-manager

:warning: PLEASE USE https://github.com/ncm2/ncm2 INSTEAD
MIT License
916 stars 49 forks source link

Support ‘smart’ filtering of autocomplete suggestons #210

Closed fenuks closed 6 years ago

fenuks commented 6 years ago

Hello, many IDEs (like those based on Intellij platform) or YouCompleteMe have ability of fast filtering autocomplete candidates by specifying only few letters. For example in python code

import io
io.BI

would suggest me BytesIO, BufferedIOBase and so on, based on simple principle that all those words use PascalCase. Those engines also work with snake_case, and os.gep would suggest get_exec_path.

It would be great to see similar ‘fuzzy’ filtering algorithm in NCM. :)

fenuks commented 6 years ago

I've read documentation more thoroughly, and noticed there is already support for this. let g:cm_matcher={'module': 'cm_matchers.abbrev_matcher', 'case': 'smartcase'} Closing as irrelevant.