diff options
author | luukvbaal <luukvbaal@gmail.com> | 2025-01-14 14:02:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 05:02:46 -0800 |
commit | 25d8c3a5ad7e9c5668841e66540ebe34ceda73a7 (patch) | |
tree | 139f1495e3b947676e9f011c50dd6ad525347a01 /src/nvim/buffer_defs.h | |
parent | e8ddb7a46938f8843abc1c321cfd83cee2ba0020 (diff) | |
download | rneovim-25d8c3a5ad7e9c5668841e66540ebe34ceda73a7.tar.gz rneovim-25d8c3a5ad7e9c5668841e66540ebe34ceda73a7.tar.bz2 rneovim-25d8c3a5ad7e9c5668841e66540ebe34ceda73a7.zip |
feat(api): nvim_open_win() relative to tabline and laststatus #32006
Problem: Anchoring a floating window to the tabline and laststatus is
cumbersome; requiring autocommands and looping over all
windows/tabpages.
Solution: Add new "tabline" and "laststatus" options to the `relative`
field of nvim_open_win() to place a window relative to.
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 3fe44beab9..bffb29578f 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -900,6 +900,8 @@ typedef enum { kFloatRelativeWindow = 1, kFloatRelativeCursor = 2, kFloatRelativeMouse = 3, + kFloatRelativeTabline = 4, + kFloatRelativeLaststatus = 5, } FloatRelative; /// Keep in sync with win_split_str[] in nvim_win_get_config() (api/win_config.c) |