I have a python repository, I'm using nvim as my ide and jedi-language-server for writing python files. I want to add a path like I can in my .vscode/settings.json -
{
"python.analysis.extraPaths": [
"./<path>"
]
}⏎
This allows the editor to access my dependencies, how do i set the same in nvim
I used :set path, but I still get where the issue is.
You should probably be using
g:jedi#added_sys_path = [...], which is documented here.However I would also point out that in general with a good setup you should probably look into setting up your Python environments properly. In those cases, jedi-vim should always work properly. For your own libraries,
pip install -e .might be interesting (to add them to the system path). For other software make sure you activate the correct virtualenv, which jedi-vim can then pick up.