Skip to content

Instantly share code, notes, and snippets.

@a-yee
Last active February 21, 2024 01:23
Show Gist options
  • Save a-yee/8143b9174f87715f95aa14dd99679b5f to your computer and use it in GitHub Desktop.
Save a-yee/8143b9174f87715f95aa14dd99679b5f 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