aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/provider.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-06-26 18:27:01 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-07-17 11:37:41 -0300
commit486c8e37c17e4aa89fa9ef7e0c682b659a5a8a82 (patch)
tree08768b45ebf42eb2c0594cc3d506672213eb3201 /src/nvim/os/provider.c
parent8a091e7f5c58a27fb3af1de76284430e812c95b5 (diff)
downloadrneovim-486c8e37c17e4aa89fa9ef7e0c682b659a5a8a82.tar.gz
rneovim-486c8e37c17e4aa89fa9ef7e0c682b659a5a8a82.tar.bz2
rneovim-486c8e37c17e4aa89fa9ef7e0c682b659a5a8a82.zip
provider: Add support for python commands/functions
This uses the provider/scripting infrastructure to reintroduce python support through the msgpack-rpc API. A new 'initpython' option was added, and it must be set to a command that will bootstrap the python provider the first time it's needed.
Diffstat (limited to 'src/nvim/os/provider.c')
-rw-r--r--src/nvim/os/provider.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/os/provider.c b/src/nvim/os/provider.c
index 967314eee4..9bd1c82569 100644
--- a/src/nvim/os/provider.c
+++ b/src/nvim/os/provider.c
@@ -31,6 +31,12 @@ static struct feature {
size_t name_length;
uint64_t channel_id;
} features[] = {
+ FEATURE("python",
+ &p_ipy,
+ "python_execute",
+ "python_execute_file",
+ "python_do_range",
+ "python_eval")
};
static Map(cstr_t, uint64_t) *registered_providers = NULL;