feat(highlight): ns=0 to set :highlight namespace

Passing ns=0 to nvim_set_hl will alter the `:highlight` namespace.
This commit is contained in:
Lewis Russell
2022-01-24 09:36:15 +00:00
parent a562b5771e
commit 4aa0cdd3aa
5 changed files with 151 additions and 17 deletions

View File

@@ -46,6 +46,18 @@ typedef struct attr_entry {
.hl_blend = -1, \
}
typedef struct {
char *bg_name;
char *fg_name;
char *sp_name;
} HlAttrNames;
#define HLATTRNAMES_INIT (HlAttrNames) { \
.bg_name = NULL, \
.fg_name = NULL, \
.sp_name = NULL, \
}
/// Values for index in highlight_attr[].
/// When making changes, also update hlf_names below!
typedef enum {