roxma / nvim-completion-manager

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

排序问题 #114

Closed cossonleo closed 7 years ago

cossonleo commented 7 years ago

@roxma 请问大神: 开启模糊匹配的时候,候选项是按照字母序排序的,怎样设置能按照匹配度排序?

roxma commented 7 years ago

https://github.com/roxma/nvim-completion-manager/blob/master/pythonx/cm_matchers/fuzzy_matcher.py

The fuzzy matcher does not sort by alphabet. But the algorithm for score is sub-optimal.

You could share your idea on improving it.