linux-cultist / venv-selector.nvim

Allows selection of python virtual environment from within neovim
MIT License
444 stars 46 forks source link

can you please add supports virtual environments created in uv as well? #154

Closed lazyzyf closed 3 months ago

lazyzyf commented 3 months ago

https://github.com/astral-sh/uv

linux-cultist commented 3 months ago

The regexp version of the plugin will find these automatically since they don't have any special locations I believe? Seems they are just named .venv in your working directory and the plugin will find those by default.

So switch to the regexp version. There is info in the Readme at the top. :)

lazyzyf commented 3 months ago

Hi. the .venv folder is in my home directory in windows OS, so the regexp can find it by default as well?

linux-cultist commented 3 months ago

By default, the regexp version will look in your current working directory (the path where you opened neovim) and all folders below it. Bur the home directory usually contain so many files that it may be slow to search all of them.

You can define your own search though and disable the cwd search, to make the plugin look exactly in your home folder and no folders below it (as an example).

There is some info in the readme how to do this but you may have to experiment a bit with fd syntax to get it how you want.:)