diff options
author | Christian Clason <christian.clason@uni-due.de> | 2021-06-13 19:54:43 +0200 |
---|---|---|
committer | Christian Clason <christian.clason@uni-due.de> | 2021-06-14 11:10:57 +0200 |
commit | 5b6edc852fe9434e0d42602083d113e3b2efc253 (patch) | |
tree | 00078755b53f23c6fa000a5288f6b0713294aa57 /src/nvim/api/private | |
parent | 141647cfbb1f137e3eefe6ba8e658b475e902cac (diff) | |
download | rneovim-5b6edc852fe9434e0d42602083d113e3b2efc253.tar.gz rneovim-5b6edc852fe9434e0d42602083d113e3b2efc253.tar.bz2 rneovim-5b6edc852fe9434e0d42602083d113e3b2efc253.zip |
feat(float): add rounded borders preset
Add `borders = "rounded"` preset for `nvim_open_win`, equivalent to
border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"}
Also add undocumented "solid" preset to docs.
Diffstat (limited to 'src/nvim/api/private')
-rw-r--r-- | src/nvim/api/private/helpers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index 4b1c2d4baa..c7d261ba18 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -1770,6 +1770,7 @@ static void parse_border_style(Object style, FloatConfig *fconfig, Error *err) { "double", { "╔", "═", "╗", "║", "╝", "═", "╚", "║" }, false }, { "single", { "┌", "─", "┐", "│", "┘", "─", "└", "│" }, false }, { "shadow", { "", "", " ", " ", " ", " ", " ", "" }, true }, + { "rounded", { "╭", "─", "╮", "│", "╯", "─", "╰", "│" }, false }, { "solid", { " ", " ", " ", " ", " ", " ", " ", " " }, false }, { NULL, { { NUL } } , false }, }; |