diff options
author | Famiu Haque <famiuhaque@protonmail.com> | 2022-01-30 11:57:41 +0600 |
---|---|---|
committer | Famiu Haque <famiuhaque@protonmail.com> | 2022-03-18 00:21:41 +0600 |
commit | 5ab122917474b3f9e88be4ee88bc6d627980cfe0 (patch) | |
tree | 4e7a3cbfcc0614cbb176d0166dd16948fe5c0ee5 /src/nvim/syntax.c | |
parent | 046950f6309070d98ab5a3deeff9d00e079ccdd4 (diff) | |
download | rneovim-5ab122917474b3f9e88be4ee88bc6d627980cfe0.tar.gz rneovim-5ab122917474b3f9e88be4ee88bc6d627980cfe0.tar.bz2 rneovim-5ab122917474b3f9e88be4ee88bc6d627980cfe0.zip |
feat: add support for global statusline
Ref: #9342
Adds the option to have a single global statusline for the current window at the bottom of the screen instead of a statusline at the bottom of every window. Enabled by setting `laststatus = 3`.
Due to the fact that statuslines at the bottom of windows are removed when global statusline is enabled, horizontal separators are used instead to separate horizontal splits. The horizontal separator character is configurable through the`horiz` item in `'fillchars'`. Separator connector characters are also used to connect the horizontal and vertical separators together, which are also configurable through the `horizup`, `horizdown`, `vertleft`, `vertright` and `verthoriz` items in `fillchars`.
The window separators are highlighted using the `WinSeparator` highlight group, which supersedes `VertSplit` and is linked to `VertSplit` by default in order to maintain backwards compatibility.
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 119f6e811f..ac764e2d99 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -6173,6 +6173,7 @@ static const char *highlight_init_both[] = { "TermCursor cterm=reverse gui=reverse", "VertSplit cterm=reverse gui=reverse", "WildMenu ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black", + "default link WinSeparator VertSplit", "default link EndOfBuffer NonText", "default link LineNrAbove LineNr", "default link LineNrBelow LineNr", @@ -6183,7 +6184,7 @@ static const char *highlight_init_both[] = { "default link Whitespace NonText", "default link MsgSeparator StatusLine", "default link NormalFloat Pmenu", - "default link FloatBorder VertSplit", + "default link FloatBorder WinSeparator", "default FloatShadow blend=80 guibg=Black", "default FloatShadowThrough blend=100 guibg=Black", "RedrawDebugNormal cterm=reverse gui=reverse", |