linux-cultist / venv-selector.nvim

Allows selection of python virtual environment from within neovim
MIT License
379 stars 40 forks source link

Miniconda support? (python.exe in venv root directory, not scripts or bin) #66

Closed xaviernogueira closed 9 months ago

xaviernogueira commented 9 months ago

First off thanks for a sweet plugin!

That said, I was trying to use it with a mini-conda environment and ran into an issue where my python.exe executables are housed in the root venv directory.

For example: .../Miniconda3/envs/my_env_name/python.exe

The anaconda { python_parent_dir = nil } option only let's one pick /Scripts or /bin, neither of which apply in a Miniconda case. The default is Scripts as I'm sure your aware.

Any chance you can create an option like anaconda { python_parent_dir = 'root' }?

I am a lua beginner, but I may give it a shot if I can figure it out.

Thanks!

xaviernogueira commented 9 months ago

Nevermind, realized I can pass in a blank string.

linux-cultist commented 9 months ago

Yes, and I should document that better. :) Thanks for reminding me and enjoy the plugin!