linux-cultist / venv-selector.nvim

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

Spaces in path prevent venv's from being displayed in telescope #150

Closed themvl closed 6 days ago

themvl commented 1 week ago

I noticed when theres a space in the full path of a venv it does not get detected or displayed. I was able to resolve an issue like this by replacing a space somewhere in a higher folder with a underscore.

linux-cultist commented 1 week ago

This is in the old version of the plugin right? You should try the new version in the regexp branch. It's rewritten from scratch and shouldn't have this problem.

More info about new branch in the Readme at the top. :)

themvl commented 4 days ago

AFAIK i actually am using the regexp version. As this is the default in lazyvim which i am using, as referenced here: https://www.lazyvim.org/extras/lang/python

{ "linux-cultist/venv-selector.nvim", branch = "regexp", -- Use this branch for the new version cmd = "VenvSelect", enabled = function() return LazyVim.has("telescope.nvim") end, opts = { settings = { options = { notify_user_on_venv_activation = true, }, }, }, -- Call config for python files and load the cached venv automatically ft = "python", keys = { { "cv", ":VenvSelect", desc = "Select VirtualEnv", ft = "python" } }, }