aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Chargin <wchargin@gmail.com>2020-01-02 00:38:49 -0800
committerJustin M. Keyes <justinkz@gmail.com>2020-01-02 00:38:49 -0800
commit391706450445fc040d3b3766ace7d91ec13b1936 (patch)
tree16ccaf0401b0a03f5fc1eaa7ebad294cd5c34c85
parent8645d480bd469d6bffa828bf220de6afc324b43c (diff)
downloadrneovim-391706450445fc040d3b3766ace7d91ec13b1936.tar.gz
rneovim-391706450445fc040d3b3766ace7d91ec13b1936.tar.bz2
rneovim-391706450445fc040d3b3766ace7d91ec13b1936.zip
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.
-rw-r--r--runtime/doc/provider.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/provider.txt b/runtime/doc/provider.txt
index 0083bb63a4..46ff075cef 100644
--- a/runtime/doc/provider.txt
+++ b/runtime/doc/provider.txt
@@ -58,12 +58,14 @@ If you run into problems, uninstall _both_ then install "pynvim" again: >
PYTHON PROVIDER CONFIGURATION ~
*g:python_host_prog*
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'
<
*g:python3_host_prog*
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'
<
*g:loaded_python_provider*