aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/sign_defs.h
blob: 4443fd8a2e2c9a1ccb3b13543b1520dae4c21452 (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
#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
};

// 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