maralla / completor.vim

Async completion framework made ease.
MIT License
1.27k stars 63 forks source link

python2 only? #267

Open rudrab opened 5 years ago

rudrab commented 5 years ago

Hi, currently I am trying to move my vimrc to vim8's, and trying to get rid of YCM. So, in my vundle:

Plugin 'maralla/completor.vim' Now, this is giving problem like:

  1. with ultisnips: UltiSnips: the Python version from g:UltiSnipsUsePythonVersion (3) is not

  2. with vimf90:

    
    "i.f90" 3L, 43C
    Error detected while processing /home/rudra/.vim/bundle/vimf90/ftplugin/fortran_block.vim:
    line  103:
    E837: This Vim cannot execute :py3 after using :python
    E263: Sorry, this command is disabled, the Python library could not be loaded.  

Any help please?
Shougo commented 5 years ago

https://github.com/maralla/completor.vim/blob/master/plugin/completor.vim#L12

It must be:

  return (has('python3') || has('python')) &&
        \ (has('job') && has('timers') || has('nvim')) &&
\ has('lambda')

If has('python') is called before has('python3'), the problem is occurred.

Shougo commented 4 years ago

You can send the PR instead.

ferreum commented 4 years ago

277