Closed GordianDziwis closed 3 years ago
The plugin tries to find the venv by itself:
.venv/
directory in project's directory..venv
file containing environment path in plain-text.Can you explain your layout and how you created your virtualenv?
@BonaBeavis are you having issues with coc
?
I had similar issue with the auto complete of coc
not working when using vim-venom
and noticed it worked when sourcing the virtual environment before opening a file with neovim.
Have you tried running :CocRestart
after vim-venom
has ran? It had fixed this issue for me.
Alternatively this autocmd
can automate it
autocmd User VenomActivated CocRestart
@rafi
I created the env with mkvenv
from zsh-autoswitch-virtualenv. In the root of the project directory is a .venv
file where the content is the name of the virtual env. And this is the issue:
.venv
with bibtex-shacl-shapes
does not work.venv
with ~/.virtualenvs/bibtex-shacl-shapes
workszsh-autoswitch replicates virtualenvwrappers setup there is a env var named WORKON_HOME
which contains the reference to $HOME/.virtualenvs.
Python is quite nice but venvs are a bit of pita.
@danielebra I use coc, but this was not the issue.
Activating venv in terminal and then starting neovim works, but venon does not find the venv. Do you rely on any env vars?