linux-cultist / venv-selector.nvim

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

Can not be used with AstroNvim by some error #69

Closed MattMaBX closed 1 year ago

MattMaBX commented 1 year ago

When I want to select the Venv in the AstroNvim, it can not be used with by the error below:

image

It seems to be an error caused by the config file, but I never edit it.

linux-cultist commented 1 year ago

Hmm, what's your config for the plugin?

MattMaBX commented 1 year ago

Maybe like this? { "linux-cultist/venv-selector.nvim", opts = {}, keys = { { "lv", ":VenvSelect", desc = "Select VirtualEnv" } }, } I'm a beginner of nvim, so maybe I can not get you clearly, thank you for your patient.

linux-cultist commented 1 year ago

It's fine to be new. :) Neovim is an excellent editor.

The error seems to indicate that it can't find fd on your system but I would have to look at the code when I'm back at my computer. :) You do have fd installed on your computer right?

MattMaBX commented 1 year ago

Oops! Thank you soooo much! There is no fd installed on my computer. I have installed it just now, but another problem is coming. The list of result is empty just like this:

image

What should I do?

linux-cultist commented 1 year ago

Maybe you dont have any python virtual environments where the plugin is searching.

Read the docs and it will explain how the plugin works. And you also need to have Pyright installed and configured. :)

MattMaBX commented 1 year ago

Got it! Now it's working! There is something wrong in my config file. BTW, venv-selector is a really powerful tool. Thanks again!

linux-cultist commented 1 year ago

Very good! Enjoy the plugin :)