Skip to content

Instantly share code, notes, and snippets.

@dteoh
Last active November 13, 2020 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dteoh/1211bb1c5b8a791784be48aab1421993 to your computer and use it in GitHub Desktop.
Save dteoh/1211bb1c5b8a791784be48aab1421993 to your computer and use it in GitHub Desktop.
NeoVim + Python 3 provider

Assuming that Conda is used, start by creating an environment for NeoVim:

$ conda create -n neovim36 python=3.6

Fish shell users:

$ source (conda info --root)/etc/fish/conf.d/conda.fish  
$ conda activate neovim36

Then install the necessary neovim python packages:

$ conda install -c conda-forge neovim

If already installed, the package can be upgraded with:

$ conda upgrade -c conda-forge neovim

Then edit your NeoVim configuration to use the python binary in the neovim36 environment:

let g:python3_host_prog = '/absolute path to miniconda3/envs/neovim36/bin/python'

Run :checkhealth to test if installation and configuration were successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment