From 61d0dfee32ce9a9fb2497b02558df02eabb61d1b Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 12 Dec 2018 00:17:27 +0100 Subject: provider: repurpose E319 In Vim (and some vestigial parts of Nvim) E319 was a placeholder for ex_ni commands, i.e. commands that are only available in certain builds of Vim. That is obviously counter to Nvim's goals: all Nvim commands are available on all platforms and build types (the remaining ex_ni commands are actually just missing providers). We need an error id for "missing provider", so it makes sense to use E319 for that purpose. ref #9344 ref #3577 --- runtime/doc/message.txt | 9 --------- runtime/doc/provider.txt | 13 ++++++++++--- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/message.txt b/runtime/doc/message.txt index d52905fc36..a46648119e 100644 --- a/runtime/doc/message.txt +++ b/runtime/doc/message.txt @@ -514,15 +514,6 @@ command. The script can then again read another script. This can continue for about 14 levels. When more nesting is done, Vim assumes that there is a recursive loop somewhere and stops with this error message. - *E319* > - The command is not available in this version - -You have used a command that is not present in the version of Vim you are -using. When compiling Vim, many different features can be enabled or -disabled. This depends on how big Vim has chosen to be and the operating -system. See |+feature-list| for when which feature is available. The -|:version| command shows which feature Vim was compiled with. - *E300* > Swap file already exists (symlink attack?) diff --git a/runtime/doc/provider.txt b/runtime/doc/provider.txt index 930c73d06e..6ed3c230b9 100644 --- a/runtime/doc/provider.txt +++ b/runtime/doc/provider.txt @@ -4,14 +4,21 @@ NVIM REFERENCE MANUAL by Thiago de Arruda -Providers *provider* +Providers *provider* -Nvim delegates some features to dynamic "providers". +Nvim delegates some features to dynamic "providers". This document describes +the providers and how to install them. + *E319* +Use of a feature requiring a missing provider is an error: > + + E319: No "foo" provider found. Run ":checkhealth provider" + +Run the |:checkhealth| command, and review the sections below. Type |gO| to see the table of contents. ============================================================================== -Python integration *provider-python* +Python integration *provider-python* Nvim supports Python |remote-plugin|s and the Vim legacy |python2| and |python3| interfaces (which are implemented as remote-plugins). -- cgit