aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2023-08-25 10:53:35 +0300
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2023-08-26 19:37:43 +0300
commit35570e4a11bef061777d741929f74fa66ba3f45a (patch)
treeef0a8587fa7f7cb30ca8241dae5b2d2cb6d72fc3 /src/nvim/buffer_defs.h
parent617fd5bdc6ab9a82bfc6136f549fc31dcf442ed7 (diff)
downloadrneovim-35570e4a11bef061777d741929f74fa66ba3f45a.tar.gz
rneovim-35570e4a11bef061777d741929f74fa66ba3f45a.tar.bz2
rneovim-35570e4a11bef061777d741929f74fa66ba3f45a.zip
feat(float): implement footer
Problem: Now way to show text at the bottom part of floating window border (a.k.a. "footer"). Solution: Allows `footer` and `footer_pos` config fields similar to `title` and `title_pos`.
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index ba6a3a1e27..3f55dbbc00 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -938,6 +938,7 @@ typedef enum {
typedef enum {
kBorderTextTitle = 0,
+ kBorderTextFooter = 1,
} BorderTextType;
typedef struct {
@@ -952,14 +953,18 @@ typedef struct {
int zindex;
WinStyle style;
bool border;
- bool title;
bool shadow;
schar_T border_chars[8];
int border_hl_ids[8];
int border_attr[8];
+ bool title;
AlignTextPos title_pos;
VirtText title_chunks;
int title_width;
+ bool footer;
+ AlignTextPos footer_pos;
+ VirtText footer_chunks;
+ int footer_width;
bool noautocmd;
} FloatConfig;