aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/provider.txt
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc/provider.txt')
-rw-r--r--runtime/doc/provider.txt55
1 files changed, 38 insertions, 17 deletions
diff --git a/runtime/doc/provider.txt b/runtime/doc/provider.txt
index 50307ccbf3..4a76f1399e 100644
--- a/runtime/doc/provider.txt
+++ b/runtime/doc/provider.txt
@@ -8,7 +8,7 @@ Providers *provider*
Nvim delegates some features to dynamic "providers".
- Type <M-]> to see the table of contents.
+ Type |gO| to see the table of contents.
==============================================================================
Python integration *provider-python*
@@ -20,7 +20,7 @@ Note: Only the Vim 7.3 API is supported; bindeval (Vim 7.4) is not.
PYTHON QUICKSTART ~
If you used a package manager to install Nvim, you might already have the
-required `neovim` Python package. Run |:CheckHealth| to see if your system is
+required `neovim` Python package. Run |:checkhealth| to see if your system is
up-to-date.
Following are steps to install the package with Python's `pip` tool.
@@ -33,20 +33,20 @@ To use Vim Python 2/3 plugins with Nvim:
- For Python 2 plugins, make sure an interpreter for Python 2.6 or 2.7 is
available in your `$PATH`, then install the `neovim` Python package systemwide: >
- $ sudo pip2 install --upgrade neovim
+ sudo pip2 install --upgrade neovim
<
or for the current user: >
- $ pip2 install --user --upgrade neovim
+ pip2 install --user --upgrade neovim
<
- For Python 3 plugins, make sure an interpreter for Python 3.3 or above is
available in your `$PATH`, then install the `neovim` Python package systemwide: >
- $ sudo pip3 install --upgrade neovim
+ sudo pip3 install --upgrade neovim
<
or for the current user: >
- $ pip3 install --user --upgrade neovim
+ pip3 install --user --upgrade neovim
<
Note: The `--upgrade` flag ensures you have the latest version even if
- a previous version was already installed.
+a previous version was already installed.
PYTHON PROVIDER CONFIGURATION ~
*g:python_host_prog*
@@ -88,12 +88,12 @@ Ruby integration *provider-ruby*
Nvim supports the Vim legacy |ruby-vim| interface via external Ruby
interpreters connected via |RPC|.
-Run |:CheckHealth| to see if your system is up-to-date.
+Run |:checkhealth| to see if your system is up-to-date.
RUBY QUICKSTART ~
To use Vim Ruby plugins with Nvim, just install the latest `neovim` RubyGem: >
- $ gem install neovim
+ gem install neovim
RUBY PROVIDER CONFIGURATION ~
*g:loaded_ruby_provider*
@@ -112,7 +112,30 @@ To use an absolute path (e.g. to an rbenv installation): >
To use the RVM "system" Ruby installation: >
let g:ruby_host_prog = 'rvm system do neovim-ruby-host'
<
+==============================================================================
+Node.js integration *provider-nodejs*
+
+Nvim supports Node.js |remote-plugin|s.
+https://github.com/neovim/node-client/
+https://nodejs.org/
+
+NODEJS QUICKSTART~
+
+To use javascript remote-plugins with Nvim, install the `neovim` npm package: >
+ npm install -g neovim
+<
+NODEJS PROVIDER CONFIGURATION~
+ *g:loaded_node_provider*
+To disable Node support: >
+ :let g:loaded_node_provider = 1
+<
+ *g:node_host_prog*
+Command to start the Node host. Setting this makes startup faster.
+By default, Nvim searches for `neovim-node-host` using "npm root -g", which
+can be slow. To avoid this, set g:node_host_prog to an absolute path: >
+ let g:node_host_prog = '/usr/local/bin/neovim-node-host'
+<
==============================================================================
Clipboard integration *provider-clipboard* *clipboard*
@@ -133,8 +156,8 @@ registers. Nvim looks for these clipboard tools, in order of priority:
- |g:clipboard|
- pbcopy/pbpaste (macOS)
- - xclip
- - xsel (newer alternative to xclip)
+ - xsel (if $DISPLAY is set)
+ - xclip (if $DISPLAY is set)
- lemonade (for SSH) https://github.com/pocke/lemonade
- doitclient (for SSH) http://www.chiark.greenend.org.uk/~sgtatham/doit/
- win32yank (Windows)
@@ -162,13 +185,11 @@ process has not died, the cached selection is applied.
==============================================================================
X11 selection mechanism *clipboard-x11* *x11-selection*
-The clipboard providers for X11 store text in what is known as "selections".
-Selections are "owned" by an application, so when the application is closed,
-the selection text is lost.
-
+X11 clipboard providers store text in "selections". Selections are owned by an
+application, so when the application gets closed, the selection text is lost.
The contents of selections are held by the originating application (e.g., upon
-a copy), and only passed on to another application when that other application
-asks for them (e.g., upon a paste).
+a copy), and only passed to another application when that other application
+requests them (e.g., upon a paste).
*quoteplus* *quote+*