linux-cultist / venv-selector.nvim

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

Doesn't detect venv #68

Closed jo-project closed 8 months ago

jo-project commented 9 months ago

Hi author, I am using WSL and try to use this plugin, but it won't detect my virtual environment (venv)

Do you know how to fix it? Thank you!

venv_doesnt_found Venv_Config

linux-cultist commented 9 months ago

Hi,

I dont know much about WSL but I guess it should work there. Do you have fd installed in there?

You can add enable_debug_output = true in your setup function there also, and next time you restart neovim you should get lots of debug output from VenvSelect (when you run it). Type :messages in neovim to see all of them. And then post it here. Lets see what its trying to do.

linux-cultist commented 9 months ago

Got anything interesting in the debug output?

jo-project commented 9 months ago

Now it works, but can I ask, how to make the Menu only contains venv of the current directory or parent (one path above current dir), I dont want to show anything else. Is there a way to make that happen? Thank you!

linux-cultist commented 8 months ago

Yeah if you set parents to 0, it will only look in your current directory and not search parent directory. And you can disable searching for venv manager venvs also, check the Readme. :)

linux-cultist commented 8 months ago

Did you get it to work? :)

linux-cultist commented 8 months ago

Closing the issue as solved.