roxma / nvim-completion-manager

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

Support per-source matching? #125

Closed roxma closed 6 years ago

roxma commented 7 years ago

As per https://github.com/roxma/nvim-completion-manager/issues/123#issuecomment-324838171

// cc @katsika

This is still open for discussion. It may or may not get implemented.

Here's my rough sketch:

Add an integer option custom_match, 0 by default. If it's set to 1, NCM won't filter, and sort the candidates of this source.

The source could use NCM's built-in maching on its own, via from cm_matchers.{module} import Matcher. Or it could use any other algorithms.

roxma commented 6 years ago

source custom matcher is implemented in ncm2.