fix(highlight): add create param in nvim_get_hl

This commit is contained in:
glepnir
2023-09-07 18:42:38 +08:00
parent 82150ca51b
commit 8afb3a49c0
7 changed files with 23 additions and 1 deletions

View File

@@ -181,6 +181,7 @@ typedef struct {
Integer id;
String name;
Boolean link;
Boolean create;
} Dict(get_highlight);
typedef struct {

View File

@@ -96,6 +96,7 @@ Integer nvim_get_hl_id_by_name(String name)
/// - name: (string) Get a highlight definition by name.
/// - id: (integer) Get a highlight definition by id.
/// - link: (boolean, default true) Show linked group name instead of effective definition |:hi-link|.
/// - create: (boolean, default true) When highlight group doesn't exist create it.
///
/// @param[out] err Error details, if any.
/// @return Highlight groups as a map from group name to a highlight definition map as in |nvim_set_hl()|,