HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/ubuntu/neovim/src/nvim/usercmd.h
#pragma once

#include <stddef.h>  // IWYU pragma: keep
#include <stdint.h>

#include "nvim/api/private/defs.h"  // IWYU pragma: keep
#include "nvim/cmdexpand_defs.h"  // IWYU pragma: keep
#include "nvim/eval/typval_defs.h"
#include "nvim/ex_cmds_defs.h"
#include "nvim/garray_defs.h"
#include "nvim/types_defs.h"

typedef struct {
  char *uc_name;             ///< The command name
  uint32_t uc_argt;          ///< The argument type
  char *uc_rep;              ///< The command's replacement string
  int64_t uc_def;            ///< The default value for a range/count
  int uc_compl;              ///< completion type
  cmd_addr_T uc_addr_type;   ///< The command's address type
  sctx_T uc_script_ctx;      ///< SCTX where the command was defined
  char *uc_compl_arg;        ///< completion argument if any
  LuaRef uc_compl_luaref;    ///< Reference to Lua completion function
  LuaRef uc_preview_luaref;  ///< Reference to Lua preview function
  LuaRef uc_luaref;          ///< Reference to Lua function
} ucmd_T;

enum { UC_BUFFER = 1, };  ///< -buffer: local to current buffer

extern garray_T ucmds;

#define USER_CMD(i) (&((ucmd_T *)(ucmds.ga_data))[i])
#define USER_CMD_GA(gap, i) (&((ucmd_T *)((gap)->ga_data))[i])

#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "usercmd.h.generated.h"
#endif