mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor(highlight): rename FloatBorderTitle #20988
requested in https://github.com/neovim/neovim/pull/20184
This commit is contained in:
parent
31ffc360f2
commit
3435cdfb94
@ -3070,7 +3070,7 @@ nvim_open_win({buffer}, {enter}, {*config}) *nvim_open_win()*
|
|||||||
|
|
||||||
• title: Title (optional) in window border, String or list.
|
• title: Title (optional) in window border, String or list.
|
||||||
List is [text, highlight] tuples. if is string the default
|
List is [text, highlight] tuples. if is string the default
|
||||||
highlight group is `FloatBorderTitle`.
|
highlight group is `FloatTitle`.
|
||||||
• title_pos: Title position must set with title option.
|
• title_pos: Title position must set with title option.
|
||||||
value can be of `left` `center` `right` default is left.
|
value can be of `left` `center` `right` default is left.
|
||||||
• noautocmd: If true then no buffer-related autocommand
|
• noautocmd: If true then no buffer-related autocommand
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
/// [ {"+", "MyCorner"}, {"x", "MyBorder"} ].
|
/// [ {"+", "MyCorner"}, {"x", "MyBorder"} ].
|
||||||
/// - title: Title (optional) in window border, String or list.
|
/// - title: Title (optional) in window border, String or list.
|
||||||
/// List is [text, highlight] tuples. if is string the default
|
/// List is [text, highlight] tuples. if is string the default
|
||||||
/// highlight group is `FloatBorderTitle`.
|
/// highlight group is `FloatTitle`.
|
||||||
/// - title_pos: Title position must set with title option.
|
/// - title_pos: Title position must set with title option.
|
||||||
/// value can be of `left` `center` `right` default is left.
|
/// value can be of `left` `center` `right` default is left.
|
||||||
/// - noautocmd: If true then no buffer-related autocommand events such as
|
/// - noautocmd: If true then no buffer-related autocommand events such as
|
||||||
@ -364,7 +364,7 @@ static void parse_border_title(Object title, Object title_pos, FloatConfig *fcon
|
|||||||
fconfig->title = false;
|
fconfig->title = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int hl_id = syn_check_group(S_LEN("FloatBorderTitle"));
|
int hl_id = syn_check_group(S_LEN("FloatTitle"));
|
||||||
kv_push(fconfig->title_chunks, ((VirtTextChunk){ .text = xstrdup(title.data.string.data),
|
kv_push(fconfig->title_chunks, ((VirtTextChunk){ .text = xstrdup(title.data.string.data),
|
||||||
.hl_id = hl_id }));
|
.hl_id = hl_id }));
|
||||||
fconfig->title_width = (int)mb_string2cells(title.data.string.data);
|
fconfig->title_width = (int)mb_string2cells(title.data.string.data);
|
||||||
|
@ -179,7 +179,7 @@ EXTERN const char *hlf_names[] INIT(= {
|
|||||||
[HLF_WBR] = "WinBar",
|
[HLF_WBR] = "WinBar",
|
||||||
[HLF_WBRNC] = "WinBarNC",
|
[HLF_WBRNC] = "WinBarNC",
|
||||||
[HLF_CU] = "Cursor",
|
[HLF_CU] = "Cursor",
|
||||||
[HLF_BTITLE] = "FloatBorderTitle",
|
[HLF_BTITLE] = "FloatTitle",
|
||||||
});
|
});
|
||||||
|
|
||||||
EXTERN int highlight_attr[HLF_COUNT + 1]; // Highl. attr for each context.
|
EXTERN int highlight_attr[HLF_COUNT + 1]; // Highl. attr for each context.
|
||||||
|
@ -131,7 +131,7 @@ static const char *highlight_init_both[] = {
|
|||||||
"default link MsgSeparator StatusLine",
|
"default link MsgSeparator StatusLine",
|
||||||
"default link NormalFloat Pmenu",
|
"default link NormalFloat Pmenu",
|
||||||
"default link FloatBorder WinSeparator",
|
"default link FloatBorder WinSeparator",
|
||||||
"default link FloatBorderTitle Title",
|
"default link FloatTitle Title",
|
||||||
"default FloatShadow blend=80 guibg=Black",
|
"default FloatShadow blend=80 guibg=Black",
|
||||||
"default FloatShadowThrough blend=100 guibg=Black",
|
"default FloatShadowThrough blend=100 guibg=Black",
|
||||||
"RedrawDebugNormal cterm=reverse gui=reverse",
|
"RedrawDebugNormal cterm=reverse gui=reverse",
|
||||||
|
Loading…
Reference in New Issue
Block a user