Skip to content
Discussion options

You must be logged in to vote

You want neovim to always use the same virtual environment, regardless of the virtual environment it is within, in my experience. To do so, you should create a virtual environment to install pynvim in:

python3 -m venv ~/.config/nvim/venv
~/.config/nvim/venv/bin/pip install pynvim

And then configure Vim to always use it:

let g:python3_host_prog = "~/.config/nvim/venv/bin/python3"

I'm a little rusty on specifics, but hopefully that puts you on the right track.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lcfd
Comment options

@neersighted
Comment options

@lcfd
Comment options

Answer selected by lcfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants