def rpc_export(rpc_method_name, sync=False):
def dec(f):<EOL><INDENT>f._nvim_rpc_method_name = rpc_method_name<EOL>f._nvim_rpc_sync = sync<EOL>f._nvim_bind = True<EOL>f._nvim_prefix_plugin_path = False<EOL>return f<EOL><DEDENT>return dec<EOL>
Export a function or plugin method as a msgpack-rpc request handler.