How do i enable python3 support for neovim?
-
Neovim does not provide support python out of the box; by support, meaning running python commands from the nvim prompt.
:py3
To enable support for running python2 or python3 commands, run the following:
Here showing install for only python3.
$ pip3 install --user --upgrade neovim
run this for python2:
$ pip install --user --upgrade neovim
As a test, launch nvim, go to the nvim prompt, which is the colon. Just prints the word cool.
:py3 print('cool') cool
© Lightnetics 2024