refactor(api): give "hl_group" more accurate _meta type

These can either be number or string in lua, so we can specify this
directly as "number|string".
This commit is contained in:
bfredl
2024-01-22 08:49:45 +01:00
parent 646fdf1073
commit d66ed4ea46
5 changed files with 16 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ typedef struct {
Integer end_line;
Integer end_row;
Integer end_col;
Integer hl_group;
HLGroupID hl_group;
Array virt_text;
String virt_text_pos;
Integer virt_text_win_col;
@@ -46,10 +46,10 @@ typedef struct {
Boolean virt_lines_leftcol;
Boolean strict;
String sign_text;
Integer sign_hl_group;
Integer number_hl_group;
Integer line_hl_group;
Integer cursorline_hl_group;
HLGroupID sign_hl_group;
HLGroupID number_hl_group;
HLGroupID line_hl_group;
HLGroupID cursorline_hl_group;
String conceal;
Boolean spell;
Boolean ui_watched;

View File

@@ -124,6 +124,7 @@ struct key_value_pair {
};
typedef uint64_t OptionalKeys;
typedef Integer HLGroupID;
// this is the prefix of all keysets with optional keys
typedef struct {