helpers/options: allow raw values for border options

This commit is contained in:
Gaetan Lepage 2024-02-02 23:03:47 +01:00 committed by Gaétan Lepage
parent 97eed79568
commit 06e4a4e0c8
2 changed files with 2 additions and 2 deletions

View file

@ -143,7 +143,7 @@ with nixvimUtils; rec {
mkEnumFirstDefault = enumValues: mkEnum enumValues (head enumValues);
mkBorder = default: name: desc:
mkNullable
nixvimTypes.border
(with nixvimTypes; maybeRaw border)
default
(let
defaultDesc = ''

View file

@ -126,7 +126,7 @@
documentation = {
maxHeight = "math.floor(40 * (40 / vim.o.lines))";
maxWidth = "math.floor((40 * 2) * (vim.o.columns / (40 * 2 * 16 / 9)))";
border = ["" "" "" " " "" "" "" " "];
border.__raw = "cmp.config.window.bordered()";
winhighlight = "FloatBorder:NormalFloat";
};
};