mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
feat(ui): add 'winbar'
Adds support for a bar at the top of each window, enabled through the `'winbar'` option. Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
This commit is contained in:
@@ -1418,14 +1418,14 @@ bool set_mark(buf_T *buf, String name, Integer line, Integer col, Error *err)
|
||||
}
|
||||
|
||||
/// Get default statusline highlight for window
|
||||
const char *get_default_stl_hl(win_T *wp)
|
||||
const char *get_default_stl_hl(win_T *wp, bool use_winbar)
|
||||
{
|
||||
if (wp == NULL) {
|
||||
return "TabLineFill";
|
||||
} else if (wp == curwin) {
|
||||
return "StatusLine";
|
||||
} else if (use_winbar) {
|
||||
return (wp == curwin) ? "WinBar" : "WinBarNC";
|
||||
} else {
|
||||
return "StatusLineNC";
|
||||
return (wp == curwin) ? "StatusLine" : "StatusLineNC";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user