Useful examples for environment_path

This commit is contained in:
Dave Halter
2021-01-02 23:39:02 +01:00
parent 91312f1755
commit 04c708cbfc

View File

@@ -208,11 +208,18 @@ get more information. If you set them to ``""``, they are not assigned.
let g:jedi#completions_command = "<C-Space>" let g:jedi#completions_command = "<C-Space>"
let g:jedi#rename_command = "<leader>r" let g:jedi#rename_command = "<leader>r"
A few examples of setting up your project: An example for setting up your project:
.. code-block:: vim .. code-block:: vim
let g:jedi#environment_path = "<leader>d" let g:jedi#environment_path = "/usr/bin/python3.9"
jedi-vim tries its best to guess your virtual env. If you want to work with a
specific virtual environment however, you can point jedi-vim towards it:
.. code-block:: vim
let g:jedi#environment_path = "venv"
Finally, if you don't want completion, but all the other features, use: Finally, if you don't want completion, but all the other features, use: