Closed smorokin closed 1 month ago
I'm working on a new version of the plugin where regular expressions can be used to filter out exactly what you want. The current version of the plugin is a bit buggy since supporting all the different venv managers have required a lot of edge cases.
The new version is all about using fd with regular expressions to filter out what you want. If you want to try it out already, you can grab the regexp
branch of the plugin and read the Readme for a quick example how to configure it.
It's still under development and not released yet, but I expect it to be done in a few weeks.
Thank you, @linux-cultist, that sounds very good! I will try it next week!
Currently the regexp
branch is not working for me - it throws vim/lazy/venv-selector.nvim/lua/venv-selector/search.lua:81: attempt to concatenate local 'job_name' (a nil value)
Ok, thanks for testing it.
I will add a lot more debug output so I can see whats wrong. Are you on linux/mac? And what does your config look like?
I use Linux and AstroNvim - it is still the "default config", but I don't think it is a good idea to test it with that first.
I think this may be fixed now, please try the regexp branch again.
You fixed it, @linux-cultist! Thank you very much!
Very good :)
Make sure to have a look at the readme in the regexp
branch often since things change quite a lot. I added callback functions just now so if you want the telescope results to look different, you can use that... :)
Hi,
when
mypy
is installed the plugin only list thevenv
folder inside themypy
package instead of the containing venv.Example:
is available in the list instead of
which is not available at all.
A workaround is to use a different name for the venv, e.g.
.venv
and changing your settings accordingly.