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`.
This commit is contained in:
Evgeni Chasnovski
2023-08-25 10:53:35 +03:00
parent 617fd5bdc6
commit 35570e4a11
10 changed files with 514 additions and 22 deletions

View File

@@ -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;