robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:9.1.0538: not possible to assign priority when defining a sign (#29592)6a886a2511

master
938 B30 linesraw
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.
7typedef struct {
8  schar_T text[SIGN_WIDTH];
9  int hl_id;
10} SignTextAttrs;
11
12/// Struct to hold the sign properties.
13typedef 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
24typedef struct {
25  DecorSignHighlight *sh;
26  uint32_t id;
27} SignItem;
28
29enum { SIGN_SHOW_MAX = 9, };  ///< Maximum number of signs shown on a single line
30enum { SIGN_DEF_PRIO = 10, };  ///< Default sign highlight priority