Activating virtualenv by default

I was wondering why pyright doesn’t know where is my imports at even tho I have venv in the same folder and point in on it.

And then I tried to activate venv before opening neovim, in this case it works fine.

I’m wondering how can I make it default behaviour?
And here someone says that it’s actual should be a default behaviour so I’m wondering what’

1 Like

Simply run nvim after you activate the environment.

$ cd /path/to/project
$ source xxx/bin/activate
(xxx) $ nvim

If you add this kind of gimmick in your bashrc, you’ll never have to bother activating.