diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-05-25 11:13:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-25 11:13:58 +0200 |
commit | 75f6ee5b26c4a4fc02b69646e0317fd8e802c193 (patch) | |
tree | 43da1dabcc4b1e01cc8c7cd54b0ccef0b95bc69f /runtime | |
parent | 4757d497f3c85cc343f7dcbc09f95e43ba5c1314 (diff) | |
parent | 8b2b1fba2abfb99186e3a1f0123251a3e2eae3fe (diff) | |
download | rneovim-75f6ee5b26c4a4fc02b69646e0317fd8e802c193.tar.gz rneovim-75f6ee5b26c4a4fc02b69646e0317fd8e802c193.tar.bz2 rneovim-75f6ee5b26c4a4fc02b69646e0317fd8e802c193.zip |
Merge pull request #28617 from glepnir/border_hl
fix(float): missing default highlight for title
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 6 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 2aa147770d..38960e1bc2 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -3259,13 +3259,15 @@ nvim_open_win({buffer}, {enter}, {config}) *nvim_open_win()* < • title: Title (optional) in window border, string or list. List should consist of `[text, highlight]` tuples. If - string, the default highlight group is `FloatTitle`. + string, or a tuple lacks a highlight, the default + highlight group is `FloatTitle`. • title_pos: Title position. Must be set with `title` option. Value can be one of "left", "center", or "right". Default is `"left"`. • footer: Footer (optional) in window border, string or list. List should consist of `[text, highlight]` tuples. - If string, the default highlight group is `FloatFooter`. + If string, or a tuple lacks a highlight, the default + highlight group is `FloatFooter`. • footer_pos: Footer position. Must be set with `footer` option. Value can be one of "left", "center", or "right". Default is `"left"`. diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 6edf2a5a96..c99eefa4f6 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1761,13 +1761,15 @@ function vim.api.nvim_open_term(buffer, opts) end --- --- • title: Title (optional) in window border, string or list. --- List should consist of `[text, highlight]` tuples. If ---- string, the default highlight group is `FloatTitle`. +--- string, or a tuple lacks a highlight, the default +--- highlight group is `FloatTitle`. --- • title_pos: Title position. Must be set with `title` --- option. Value can be one of "left", "center", or "right". --- Default is `"left"`. --- • footer: Footer (optional) in window border, string or --- list. List should consist of `[text, highlight]` tuples. ---- If string, the default highlight group is `FloatFooter`. +--- If string, or a tuple lacks a highlight, the default +--- highlight group is `FloatFooter`. --- • footer_pos: Footer position. Must be set with `footer` --- option. Value can be one of "left", "center", or "right". --- Default is `"left"`. |