HallerPatrick / py_lsp.nvim

Lsp Plugin for working with Python virtual environments
97 stars 11 forks source link

Automatic source from PyLspFindVenvs results #27

Closed guilhermeprokisch closed 1 year ago

guilhermeprokisch commented 1 year ago

There's an option to automatically source from PyLspFindVenvs results? I mean, I always have a .venv on my project root so there's any way to pass the PyLspFindVenvs results automatically activation?

HallerPatrick commented 1 year ago

Hey!

I am not quite sure about sourcing all results from PyLspFindVenvs. But if you always have a .venv in your project root you can set default_venv_name.

Like:

require("py_lsp").setup({
   -- Look for virtual environment with name ".venv" 
    default_venv_name = ".venv"
})

Hope this helps with your problem :)