Skip to content

Instantly share code, notes, and snippets.

@JohnReid
Forked from a-yee/nvimCondaEnv.txt
Created October 16, 2019 14:00
Show Gist options
  • Save JohnReid/6bb41008492fae956ed460f50bdba3bf to your computer and use it in GitHub Desktop.
Save JohnReid/6bb41008492fae956ed460f50bdba3bf to your computer and use it in GitHub Desktop.
Setting up neovim python3 environment using conda
# bash commands
# lists all of your conda env
conda env list
# Create a conda env w/ python3.5
# -n sets the name for your new env. I call it neovim here
conda create -n neovim python=3.5
# add neovim for python3 to the env
# specify version you want here, 0.1.13 up to date ver atm
# should auto detect ver you need
conda install -c conda-forge neovim=0.1.13
# use the list cmd again and extract the path to new env
conda env list
# neovim init.vim file cmd
# runs python3 for neovim from a specific env
# should resolve the need for neovim in each new python env when using nvim
# add the following to your init.vim file
let g:python3_host_prog = '/path/to/neovim/env/bin/python'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment