mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
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:
@@ -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;
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user