linux-cultist / venv-selector.nvim

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

feat: add pylance support #54

Closed svitax closed 1 year ago

svitax commented 1 year ago

I recently started using pylance in place of pyright. I also normally have venvs in my workspace so I noticed that with search = false and search_workspace = true my venvs wouldn't appear in VenvSelect anymore. That seems to be because list_pyright_workspace_folders is only looking for clients named pyright.

This is just my quick and dirty way of adding support for pylance for anyone who also happens to be using it.

linux-cultist commented 1 year ago

Hi and thank you for contributing!

I will have a look tonight or tomorrow and see if we can get this merged. The more support the better :)