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