1 | #ifndef NVIM_OPTION_H |
2 | #define NVIM_OPTION_H |
3 | |
4 | #include "nvim/ex_cmds_defs.h" // for exarg_T |
5 | |
6 | /* flags for buf_copy_options() */ |
7 | #define BCO_ENTER 1 /* going to enter the buffer */ |
8 | #define BCO_ALWAYS 2 /* always copy the options */ |
9 | #define BCO_NOHELP 4 /* don't touch the help related options */ |
10 | |
11 | /// Flags for option-setting functions |
12 | /// |
13 | /// When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global |
14 | /// values, get local value. |
15 | typedef enum { |
16 | OPT_FREE = 1, ///< Free old value if it was allocated. |
17 | OPT_GLOBAL = 2, ///< Use global value. |
18 | OPT_LOCAL = 4, ///< Use local value. |
19 | OPT_MODELINE = 8, ///< Option in modeline. |
20 | OPT_WINONLY = 16, ///< Only set window-local options. |
21 | OPT_NOWIN = 32, ///< Don’t set window-local options. |
22 | } OptionFlags; |
23 | |
24 | #ifdef INCLUDE_GENERATED_DECLARATIONS |
25 | # include "option.h.generated.h" |
26 | #endif |
27 | #endif // NVIM_OPTION_H |
28 | |