lifepillar / vim-mucomplete

Chained completion that works the way you want!
MIT License
910 stars 18 forks source link

Undefined variable: g:mucomplete#can_complete #1

Closed sunaku closed 7 years ago

sunaku commented 8 years ago

Using NeoVim 0.1.5, in a brand new buffer, typing "hello" and then pressing TAB causes this error: :bomb:

Error detected while processing function mucomplete#complete[7]..<SNR>370_complete[5]..mucomplete#complete_chain:
line    5:
E121: Undefined variable: g:mucomplete#can_complete
Press ENTER or type command to continue
lifepillar commented 8 years ago

MUcomplete currently requires Vim compiled with +lambda and NeoVim does not have lambdas yet. I will fix this will see whether it is worth being more backward compatible. As far as I know, lambdas will make it into NeoVim eventually.

tjharman commented 8 years ago

This means that older versions of vim don't work either For example the 7.4 vim that's included in Debian 8.6 won't work:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 23:36:03) Included patches: 1-488, 576

tim@animal ~> vim --version | grep lambda tim@animal ~>

It might pay to update the Readme to clearly state that vim8 is a requirement.

calebeby commented 8 years ago

Is there a way to use this plugin with neovim?

tjharman commented 8 years ago

No, it doesn't support +lambda

lifepillar commented 7 years ago

Older Vim and NeoVim are now supported. Fixed by https://github.com/lifepillar/vim-mucomplete/commit/42b12a975c9ed5834e50e72ae7bc7511908dd820.