From 486c8e37c17e4aa89fa9ef7e0c682b659a5a8a82 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Thu, 26 Jun 2014 18:27:01 -0300 Subject: 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. --- src/nvim/os/provider.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nvim/os') 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; -- cgit