def command(name, nargs=<NUM_LIT:0>, complete=None, range=None, count=None, bang=False,<EOL>register=False, sync=False, allow_nested=False, eval=None):
def dec(f):<EOL><INDENT>f._nvim_rpc_method_name = '<STR_LIT>'.format(name)<EOL>f._nvim_rpc_sync = sync<EOL>f._nvim_bind = True<EOL>f._nvim_prefix_plugin_path = True<EOL>opts = {}<EOL>if range is not None:<EOL><INDENT>opts['<STR_LIT>'] = '<STR_LIT>' if range is True else str(range)<EOL><DEDENT>elif count is not None:<EOL><INDENT>opts['<STR_LIT:count>'] = count<EOL><DEDENT>if bang:<EOL><INDENT>opts['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>if register:<EOL><INDENT>opts['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>if nargs:<EOL><INDENT>opts['<STR_LIT>'] = nargs<EOL><DEDENT>if complete:<EOL><INDENT>opts['<STR_LIT>'] = complete<EOL><DEDENT>if eval:<EOL><INDENT>opts['<STR_LIT>'] = eval<EOL><DEDENT>if not sync and allow_nested:<EOL><INDENT>rpc_sync = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>rpc_sync = sync<EOL><DEDENT>f._nvim_rpc_spec = {<EOL>'<STR_LIT:type>': '<STR_LIT>',<EOL>'<STR_LIT:name>': name,<EOL>'<STR_LIT>': rpc_sync,<EOL>'<STR_LIT>': opts<EOL>}<EOL>return f<EOL><DEDENT>return dec<EOL>
Tag a function or plugin method as a Nvim command handler.