1

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.

H.Li
  • 171
  • 2
  • 12
  • Did you find a solution? I tried your workaround, but that also did not work for me. – Mariano Kamp Jun 08 '23 at 18:20
  • 1
    @MarianoKamp I finally found out it is because tmux will mess up the $PATH, so if I left tmux everything works out just fine. Then what i did is to make $PATH inside tmux looks the same as outside tmux. Maybe this will help you too, but I am not sure. Good luck – H.Li Jun 15 '23 at 07:23
  • I use tmux too. Interesting. Will investigate :) Thanks @H.Li. – Mariano Kamp Jun 15 '23 at 08:32

0 Answers0