mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
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.
This commit is contained in:
@@ -789,6 +789,22 @@ void ex_profile(exarg_T *eap)
|
||||
}
|
||||
}
|
||||
|
||||
void ex_python(exarg_T *eap)
|
||||
{
|
||||
script_host_execute("python_execute", eap);
|
||||
}
|
||||
|
||||
void ex_pyfile(exarg_T *eap)
|
||||
{
|
||||
script_host_execute_file("python_execute_file", eap);
|
||||
}
|
||||
|
||||
void ex_pydo(exarg_T *eap)
|
||||
{
|
||||
script_host_do_range("python_do_range", eap);
|
||||
}
|
||||
|
||||
|
||||
/* Command line expansion for :profile. */
|
||||
static enum {
|
||||
PEXP_SUBCMD, /* expand :profile sub-commands */
|
||||
|
Reference in New Issue
Block a user