fix(highlight): add force in nvim_set_hl

This commit is contained in:
glepnir
2023-09-18 14:50:27 +08:00
parent 71530cc972
commit f8ea49cfe1
7 changed files with 19 additions and 2 deletions

View File

@@ -168,6 +168,7 @@ typedef struct {
Integer blend;
Boolean fg_indexed;
Boolean bg_indexed;
Boolean force;
} Dict(highlight);
typedef struct {

View File

@@ -151,6 +151,7 @@ Dictionary nvim_get_hl(Integer ns_id, Dict(get_highlight) *opts, Arena *arena, E
/// - cterm: cterm attribute map, like |highlight-args|. If not set,
/// cterm attributes will match those from the attribute map
/// documented above.
/// - force: if true force update the highlight group when it exists.
/// @param[out] err Error details, if any
///
// TODO(bfredl): val should take update vs reset flag