sign_defs.h (938B)
1 #pragma once 2 3 #include "nvim/decoration_defs.h" 4 #include "nvim/types_defs.h" 5 6 /// Sign attributes. Used by the screen refresh routines. 7 typedef struct { 8 schar_T text[SIGN_WIDTH]; 9 int hl_id; 10 } SignTextAttrs; 11 12 /// Struct to hold the sign properties. 13 typedef struct { 14 char *sn_name; // name of sign 15 char *sn_icon; // name of pixmap 16 schar_T sn_text[SIGN_WIDTH]; // text used instead of pixmap 17 int sn_line_hl; // highlight ID for line 18 int sn_text_hl; // highlight ID for text 19 int sn_cul_hl; // highlight ID for text on current line when 'cursorline' is set 20 int sn_num_hl; // highlight ID for line number 21 int sn_priority; // default priority of this sign, -1 means SIGN_DEF_PRIO 22 } sign_T; 23 24 typedef struct { 25 DecorSignHighlight *sh; 26 uint32_t id; 27 } SignItem; 28 29 enum { SIGN_SHOW_MAX = 9, }; ///< Maximum number of signs shown on a single line 30 enum { SIGN_DEF_PRIO = 10, }; ///< Default sign highlight priority