How to get pyright to use the current conda environment automatically?

1.1k Views Asked by At

I would like pyright installed by Mason to use the current conds environment, that is the one used when opening neovim.

If I put a pyrightconfig.json shown below in root dir of my project, this will work

{
    "venv": "some name",
    "venvPath": "/opt/miniconda3/envs/"
}

but this fixed an environment, I would like to use the one used in the session that opened neovim without having to write a pyrightconfig.json.

0

There are 0 best solutions below