doc: mention *_host_prog ordering sensitivity #11639

Any uses of `has("python3")` will cause the `g:loaded_python3_provider`
variable to be set if the system path does not have a Python with Neovim
support. Subsequent assignments to `g:python3_host_program` will
therefore not cause the provider to be activated.
This commit is contained in:
William Chargin 2020-01-02 00:38:49 -08:00 committed by Justin M. Keyes
parent 8645d480bd
commit 3917064504

View File

@ -58,12 +58,14 @@ If you run into problems, uninstall _both_ then install "pynvim" again: >
PYTHON PROVIDER CONFIGURATION ~ PYTHON PROVIDER CONFIGURATION ~
*g:python_host_prog* *g:python_host_prog*
Command to start Python 2 (executable, not directory). Setting this makes Command to start Python 2 (executable, not directory). Setting this makes
startup faster. Useful for working with virtualenvs. > startup faster. Useful for working with virtualenvs. Must be set before any
check for has("python2"). >
let g:python_host_prog = '/path/to/python' let g:python_host_prog = '/path/to/python'
< <
*g:python3_host_prog* *g:python3_host_prog*
Command to start Python 3 (executable, not directory). Setting this makes Command to start Python 3 (executable, not directory). Setting this makes
startup faster. Useful for working with virtualenvs. > startup faster. Useful for working with virtualenvs. Must be set before any
check for has("python3"). >
let g:python3_host_prog = '/path/to/python3' let g:python3_host_prog = '/path/to/python3'
< <
*g:loaded_python_provider* *g:loaded_python_provider*