mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
fix(highlight): add create param in nvim_get_hl
This commit is contained in:
@@ -181,6 +181,7 @@ typedef struct {
|
||||
Integer id;
|
||||
String name;
|
||||
Boolean link;
|
||||
Boolean create;
|
||||
} Dict(get_highlight);
|
||||
|
||||
typedef struct {
|
||||
|
@@ -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()|,
|
||||
|
Reference in New Issue
Block a user