roxma / nvim-completion-manager

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

Overwriting priority for a built-in completer #212

Closed ravicious closed 6 years ago

ravicious commented 6 years ago

cm-filepath quite often populates the list with items I'm not interested in (since I rarely deal with file paths when writing in Ruby).

However, this completer is still useful for me in JS or when I just manually start a line with /.

Can I somehow overwrite its priority so its suggestions don't show up at the top of the list?

Shougo commented 6 years ago
let g:cm_sources_override = {
    \ 'cm-filepath': {'priority':1}
    \ }
ravicious commented 6 years ago

Thanks, for some reason I didn't think it can be used for changing other options, since I didn't read the docs super carefully and the examples show it being used for turning off a completer.