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   OPT_ONECOLUMN = 64,  ///< list options one per line
23   OPT_NO_REDRAW = 128,  ///< ignore redraw flags on option
24   OPT_SKIPRTP = 256,  ///< "skiprtp" in 'sessionoptions'
25 } OptionFlags;
26 
27 #ifdef INCLUDE_GENERATED_DECLARATIONS
28 # include "option.h.generated.h"
29 #endif
30 #endif  // NVIM_OPTION_H
31