Skip to content

Instantly share code, notes, and snippets.

@attomos
Forked from a-yee/nvimCondaEnv.txt
Created October 24, 2019 16:21
Show Gist options
  • Save attomos/b19ace4e0ab157745a5174c545545e0b to your computer and use it in GitHub Desktop.
Save attomos/b19ace4e0ab157745a5174c545545e0b 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