diff options
Diffstat (limited to 'src/nvim/statusline_defs.h')
-rw-r--r-- | src/nvim/statusline_defs.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nvim/statusline_defs.h b/src/nvim/statusline_defs.h new file mode 100644 index 0000000000..eac9dfd690 --- /dev/null +++ b/src/nvim/statusline_defs.h @@ -0,0 +1,26 @@ +#ifndef NVIM_STATUSLINE_DEFS_H +#define NVIM_STATUSLINE_DEFS_H + +#include <stddef.h> + +#include "nvim/macros.h" + +/// Status line click definition +typedef struct { + enum { + kStlClickDisabled = 0, ///< Clicks to this area are ignored. + kStlClickTabSwitch, ///< Switch to the given tab. + kStlClickTabClose, ///< Close given tab. + kStlClickFuncRun, ///< Run user function. + } type; ///< Type of the click. + int tabnr; ///< Tab page number. + char *func; ///< Function to run. +} StlClickDefinition; + +/// Used for tabline clicks +typedef struct { + StlClickDefinition def; ///< Click definition. + const char *start; ///< Location where region starts. +} StlClickRecord; + +#endif // NVIM_STATUSLINE_DEFS_H |