robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
aa1d8a2702
master
1#pragma once 2 3#include <lauxlib.h> // for LUA_NOREF 4#include <stdbool.h> 5#include <stddef.h> 6 7#include "nvim/api/private/defs.h" 8#include "nvim/ascii_defs.h" 9#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep 10#include "nvim/extmark_defs.h" // IWYU pragma: keep 11#include "nvim/macros_defs.h" 12#include "nvim/normal_defs.h" 13#include "nvim/option_defs.h" // IWYU pragma: keep 14#include "nvim/os/time_defs.h" 15#include "nvim/pos_defs.h" 16#include "nvim/register_defs.h" 17#include "nvim/types_defs.h" 18 19/// Operator IDs; The order must correspond to opchars[] in ops.c! 20enum { 21OP_NOP = 0 ,///< no pending operation 22OP_DELETE = 1 ,///< "d" delete operator 23OP_YANK = 2 ,///< "y" yank operator 24OP_CHANGE = 3 ,///< "c" change operator 25OP_LSHIFT = 4 ,///< "<" left shift operator 26OP_RSHIFT = 5 ,///< ">" right shift operator 27OP_FILTER = 6 ,///< "!" filter operator 28OP_TILDE = 7 ,///< "g~" switch case operator 29OP_INDENT = 8 ,///< "=" indent operator 30OP_FORMAT = 9 ,///< "gq" format operator 31OP_COLON = 10 ,///< ":" colon operator 32OP_UPPER = 11 ,///< "gU" make upper case operator 33OP_LOWER = 12 ,///< "gu" make lower case operator 34OP_JOIN = 13 ,///< "J" join operator, only for Visual mode 35OP_JOIN_NS = 14 ,///< "gJ" join operator, only for Visual mode 36OP_ROT13 = 15 ,///< "g?" rot-13 encoding 37OP_REPLACE = 16 ,///< "r" replace chars, only for Visual mode 38OP_INSERT = 17 ,///< "I" Insert column, only for Visual mode 39OP_APPEND = 18 ,///< "A" Append column, only for Visual mode 40OP_FOLD = 19 ,///< "zf" define a fold 41OP_FOLDOPEN = 20 ,///< "zo" open folds 42OP_FOLDOPENREC = 21 ,///< "zO" open folds recursively 43OP_FOLDCLOSE = 22 ,///< "zc" close folds 44OP_FOLDCLOSEREC = 23 ,///< "zC" close folds recursively 45OP_FOLDDEL = 24 ,///< "zd" delete folds 46OP_FOLDDELREC = 25 ,///< "zD" delete folds recursively 47OP_FORMAT2 = 26 ,///< "gw" format operator, keeps cursor pos 48OP_FUNCTION = 27 ,///< "g@" call 'operatorfunc' 49OP_NR_ADD = 28 ,///< "<C-A>" Add to the number or alphabetic character 50OP_NR_SUB = 29 ,///< "<C-X>" Subtract from the number or alphabetic character 51OP_MCURSOR = 30 ,///< "zq" place a multicursor at (repeated) motion. 52}; 53 54#include "ops.h.generated.h" 55#include "ops.h.inline.generated.h"