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_USER_DATA 4 // "user data"
14 #define CPT_COUNT 5 // Number of entries
15 
16 typedef int (*IndentGetter)(void);
17 
18 /* Values for in_cinkeys() */
19 #define KEY_OPEN_FORW 0x101
20 #define KEY_OPEN_BACK 0x102
21 #define KEY_COMPLETE 0x103 /* end of completion */
22 
23 /* Values for change_indent() */
24 #define INDENT_SET 1 /* set indent */
25 #define INDENT_INC 2 /* increase indent */
26 #define INDENT_DEC 3 /* decrease indent */
27 
28 /* flags for beginline() */
29 #define BL_WHITE 1 /* cursor on first non-white in the line */
30 #define BL_SOL 2 /* use 'sol' option */
31 #define BL_FIX 4 /* don't leave cursor on a NUL */
32 
33 /* flags for insertchar() */
34 #define INSCHAR_FORMAT 1 /* force formatting */
35 #define INSCHAR_DO_COM 2 /* format comments */
36 #define INSCHAR_CTRLV 4 /* char typed just after CTRL-V */
37 #define INSCHAR_NO_FEX 8 /* don't use 'formatexpr' */
38 #define INSCHAR_COM_LIST 16 /* format comments with list/2nd line indent */
39 
40 #ifdef INCLUDE_GENERATED_DECLARATIONS
41 # include "edit.h.generated.h"
42 #endif
43 #endif // NVIM_EDIT_H
int(* IndentGetter)(void)
Definition: edit.h:16