aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private
diff options
context:
space:
mode:
authorChristian Clason <christian.clason@uni-due.de>2021-06-13 19:54:43 +0200
committerChristian Clason <christian.clason@uni-due.de>2021-06-14 11:10:57 +0200
commit5b6edc852fe9434e0d42602083d113e3b2efc253 (patch)
tree00078755b53f23c6fa000a5288f6b0713294aa57 /src/nvim/api/private
parent141647cfbb1f137e3eefe6ba8e658b475e902cac (diff)
downloadrneovim-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.c1
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 },
};