extmark_defs.h
Go to the documentation of this file.
1 #ifndef NVIM_EXTMARK_DEFS_H
2 #define NVIM_EXTMARK_DEFS_H
3 
4 #include "nvim/lib/kvec.h"
5 #include "nvim/types.h"
6 
7 typedef struct {
8  char *text;
9  int hl_id;
11 
13 typedef kvec_t(ExtmarkUndoObject) extmark_undo_vec_t;
14 
15 // Undo/redo extmarks
16 
17 typedef enum {
18  kExtmarkNOOP, // Extmarks shouldn't be moved
19  kExtmarkUndo, // Operation should be reversible/undoable
20  kExtmarkNoUndo, // Operation should not be reversible
21  kExtmarkUndoNoRedo, // Operation should be undoable, but not redoable
22 } ExtmarkOp;
23 
24 typedef enum {
28 } DecorLevel;
29 
30 #endif // NVIM_EXTMARK_DEFS_H
DecorLevel
DecorLevel
Definition: extmark_defs.h:24
types.h
kDecorLevelVisible
@ kDecorLevelVisible
Definition: extmark_defs.h:26
kExtmarkNoUndo
@ kExtmarkNoUndo
Definition: extmark_defs.h:20
kExtmarkNOOP
@ kExtmarkNOOP
Definition: extmark_defs.h:18
VirtTextChunk
Definition: extmark_defs.h:7
kvec.h
ExtmarkOp
ExtmarkOp
Definition: extmark_defs.h:17
kDecorLevelNone
@ kDecorLevelNone
Definition: extmark_defs.h:25
VirtTextChunk::hl_id
int hl_id
Definition: extmark_defs.h:9
kExtmarkUndo
@ kExtmarkUndo
Definition: extmark_defs.h:19
undo_object
Definition: extmark.h:74
kDecorLevelVirtLine
@ kDecorLevelVirtLine
Definition: extmark_defs.h:27
VirtTextChunk::text
char * text
Definition: extmark_defs.h:8
kExtmarkUndoNoRedo
@ kExtmarkUndoNoRedo
Definition: extmark_defs.h:21
kvec_t
typedef kvec_t(ExtmarkUndoObject) extmark_undo_vec_t