roxma / nvim-completion-manager

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

How to complete for python2 modules? #158

Closed Ninlives closed 6 years ago

Ninlives commented 6 years ago

I'm working on MacOS and installed both python2 and python3 via Homebrew. They all can be found in the PATH, but when I editing a .py file nom always try to complete for python3 and ignore those python2 modules, so how could I switch to python2 completion?

roxma commented 6 years ago

Currently python2 completion is only available when you're running on virtual env.

Activate the virtual env of your python2 project before starting neovim.