diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-21 15:17:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-21 15:17:36 +0100 |
commit | 162b71479bd4dcdb3a2ef9198a1444f6f99e6843 (patch) | |
tree | edd67e40cafeff24ad1631f9035ecc132e73b22b /src/structs.h | |
parent | 48f377a476e4a3312aa0e3535aba170484b59483 (diff) |
patch 8.1.0614: placing signs can be complicatedv8.1.0614
Problem: Placing signs can be complicated.
Solution: Add functions for defining and placing signs. Introduce a group
name to avoid different plugins using the same signs. (Yegappan
Lakshmanan, closes #3652)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 6f507859ea..09a566571a 100644 --- a/src/structs.h +++ b/src/structs.h @@ -740,10 +740,15 @@ struct signlist int id; /* unique identifier for each placed sign */ linenr_T lnum; /* line number which has this sign */ int typenr; /* typenr of sign */ + char_u *group; /* sign group */ + int priority; /* priority for highlighting */ signlist_T *next; /* next signlist entry */ signlist_T *prev; /* previous entry -- for easy reordering */ }; +// Default sign priority for highlighting +#define SIGN_DEF_PRIO 10 + /* type argument for buf_getsigntype() */ #define SIGN_ANY 0 #define SIGN_LINEHL 1 |