edit.h
Go to the documentation of this file.
1 #ifndef NVIM_EDIT_H
2 #define NVIM_EDIT_H
3 
4 #include "nvim/vim.h"
5 
6 /*
7  * Array indexes used for cptext argument of ins_compl_add().
8  */
9 #define CPT_ABBR 0 // "abbr"
10 #define CPT_MENU 1 // "menu"
11 #define CPT_KIND 2 // "kind"
12 #define CPT_INFO 3 // "info"
13 #define CPT_COUNT 4 // Number of entries
14 
15 // values for cp_flags
16 typedef enum {
17  CP_ORIGINAL_TEXT = 1, // the original text when the expansion begun
18  CP_FREE_FNAME = 2, // cp_fname is allocated
19  CP_CONT_S_IPOS = 4, // use CONT_S_IPOS for compl_cont_status
20  CP_EQUAL = 8, // ins_compl_equal() always returns true
21  CP_ICASE = 16, // ins_compl_equal ignores case
22 } cp_flags_T;
23 
24 typedef int (*IndentGetter)(void);
25 
26 /* Values for in_cinkeys() */
27 #define KEY_OPEN_FORW 0x101
28 #define KEY_OPEN_BACK 0x102
29 #define KEY_COMPLETE 0x103 /* end of completion */
30 
31 /* Values for change_indent() */
32 #define INDENT_SET 1 /* set indent */
33 #define INDENT_INC 2 /* increase indent */
34 #define INDENT_DEC 3 /* decrease indent */
35 
36 /* flags for beginline() */
37 #define BL_WHITE 1 /* cursor on first non-white in the line */
38 #define BL_SOL 2 /* use 'sol' option */
39 #define BL_FIX 4 /* don't leave cursor on a NUL */
40 
41 /* flags for insertchar() */
42 #define INSCHAR_FORMAT 1 /* force formatting */
43 #define INSCHAR_DO_COM 2 /* format comments */
44 #define INSCHAR_CTRLV 4 /* char typed just after CTRL-V */
45 #define INSCHAR_NO_FEX 8 /* don't use 'formatexpr' */
46 #define INSCHAR_COM_LIST 16 /* format comments with list/2nd line indent */
47 
48 #ifdef INCLUDE_GENERATED_DECLARATIONS
49 # include "edit.h.generated.h"
50 #endif
51 #endif // NVIM_EDIT_H
Definition: edit.h:18
int(* IndentGetter)(void)
Definition: edit.h:24
Definition: edit.h:19
cp_flags_T
Definition: edit.h:16
Definition: edit.h:20
void(WINAPI *pClosePseudoConsole)(HPCON)
Definition: edit.h:21
Definition: edit.h:17