mirror of
https://github.com/neovim/neovim.git
synced 2025-11-23 02:26:30 +00:00
highlight: expose builtin highlight groups using hl_group_set event
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/ascii.h"
|
||||
#include "nvim/api/private/helpers.h"
|
||||
#include "nvim/syntax.h"
|
||||
#include "nvim/charset.h"
|
||||
#include "nvim/cursor_shape.h"
|
||||
@@ -7500,6 +7501,12 @@ void highlight_changed(void)
|
||||
|
||||
highlight_attr[hlf] = hl_get_ui_attr(hlf, final_id,
|
||||
hlf == (int)HLF_INACTIVE);
|
||||
|
||||
if (highlight_attr[hlf] != highlight_attr_last[hlf]) {
|
||||
ui_call_hl_group_set(cstr_as_string((char *)hlf_names[hlf]),
|
||||
highlight_attr[hlf]);
|
||||
highlight_attr_last[hlf] = highlight_attr[hlf];
|
||||
}
|
||||
}
|
||||
|
||||
/* Setup the user highlights
|
||||
|
||||
Reference in New Issue
Block a user