aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/sign_defs.h
blob: b4f2709d458425773c509a6b7cd141b2fef1ba9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef NVIM_SIGN_DEFS_H
#define NVIM_SIGN_DEFS_H

#include "nvim/pos.h"

// signs: line annotations

typedef struct signlist signlist_T;

struct signlist
{
    int id;             // unique identifier for each placed sign
    linenr_T lnum;      // line number which has this sign
    int typenr;         // typenr of sign
    signlist_T *next;   // next signlist entry
    signlist_T *prev;   // previous entry -- for easy reordering
};

// type argument for buf_getsigntype() and sign_get_attr()
typedef enum {
  SIGN_ANY,
  SIGN_LINEHL,
  SIGN_ICON,
  SIGN_TEXT,
  SIGN_NUMHL,
} SignType;



#endif // NVIM_SIGN_DEFS_H