robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

robinmerge: 1dc9728daa1d8a2702

master
2.4 KiB55 linesraw
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 {
21  OP_NOP          = 0,   ///< no pending operation
22  OP_DELETE       = 1,   ///< "d"  delete operator
23  OP_YANK         = 2,   ///< "y"  yank operator
24  OP_CHANGE       = 3,   ///< "c"  change operator
25  OP_LSHIFT       = 4,   ///< "<"  left shift operator
26  OP_RSHIFT       = 5,   ///< ">"  right shift operator
27  OP_FILTER       = 6,   ///< "!"  filter operator
28  OP_TILDE        = 7,   ///< "g~" switch case operator
29  OP_INDENT       = 8,   ///< "="  indent operator
30  OP_FORMAT       = 9,   ///< "gq" format operator
31  OP_COLON        = 10,  ///< ":"  colon operator
32  OP_UPPER        = 11,  ///< "gU" make upper case operator
33  OP_LOWER        = 12,  ///< "gu" make lower case operator
34  OP_JOIN         = 13,  ///< "J"  join operator, only for Visual mode
35  OP_JOIN_NS      = 14,  ///< "gJ"  join operator, only for Visual mode
36  OP_ROT13        = 15,  ///< "g?" rot-13 encoding
37  OP_REPLACE      = 16,  ///< "r"  replace chars, only for Visual mode
38  OP_INSERT       = 17,  ///< "I"  Insert column, only for Visual mode
39  OP_APPEND       = 18,  ///< "A"  Append column, only for Visual mode
40  OP_FOLD         = 19,  ///< "zf" define a fold
41  OP_FOLDOPEN     = 20,  ///< "zo" open folds
42  OP_FOLDOPENREC  = 21,  ///< "zO" open folds recursively
43  OP_FOLDCLOSE    = 22,  ///< "zc" close folds
44  OP_FOLDCLOSEREC = 23,  ///< "zC" close folds recursively
45  OP_FOLDDEL      = 24,  ///< "zd" delete folds
46  OP_FOLDDELREC   = 25,  ///< "zD" delete folds recursively
47  OP_FORMAT2      = 26,  ///< "gw" format operator, keeps cursor pos
48  OP_FUNCTION     = 27,  ///< "g@" call 'operatorfunc'
49  OP_NR_ADD       = 28,  ///< "<C-A>" Add to the number or alphabetic character
50  OP_NR_SUB       = 29,  ///< "<C-X>" Subtract from the number or alphabetic character
51  OP_MCURSOR      = 30,  ///< "zq" place a multicursor at (repeated) motion.
52};
53
54#include "ops.h.generated.h"
55#include "ops.h.inline.generated.h"