roxma / nvim-completion-manager

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

NCM disabled for buftype != '' by default. #124

Closed ghost closed 7 years ago

ghost commented 7 years ago

I understand that https://github.com/roxma/nvim-completion-manager/blob/master/autoload/cm.vim#L599 disables completion plugin completely unless buftype is ''. I would like to use completions in https://github.com/jreybert/vimagit buffer, which has value of acwrite set by https://github.com/jreybert/vimagit/blob/3b61de8d4611814d02317f187fae23d118b3f69e/plugin/magit.vim#L1128.

Do you think it would make sense to provide a configurable whitelist of some sort to allow users configure buffer types they wish to have completions for?

roxma commented 7 years ago

You could call cm#enable_for_buffer() explicitly. NCM will not override it after that.

ghost commented 7 years ago

It does the job, thank you very much!