mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-25 21:24:59 +02:00
helpers/options: allow raw values for border options
This commit is contained in:
parent
97eed79568
commit
06e4a4e0c8
2 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ with nixvimUtils; rec {
|
||||||
mkEnumFirstDefault = enumValues: mkEnum enumValues (head enumValues);
|
mkEnumFirstDefault = enumValues: mkEnum enumValues (head enumValues);
|
||||||
mkBorder = default: name: desc:
|
mkBorder = default: name: desc:
|
||||||
mkNullable
|
mkNullable
|
||||||
nixvimTypes.border
|
(with nixvimTypes; maybeRaw border)
|
||||||
default
|
default
|
||||||
(let
|
(let
|
||||||
defaultDesc = ''
|
defaultDesc = ''
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
documentation = {
|
documentation = {
|
||||||
maxHeight = "math.floor(40 * (40 / vim.o.lines))";
|
maxHeight = "math.floor(40 * (40 / vim.o.lines))";
|
||||||
maxWidth = "math.floor((40 * 2) * (vim.o.columns / (40 * 2 * 16 / 9)))";
|
maxWidth = "math.floor((40 * 2) * (vim.o.columns / (40 * 2 * 16 / 9)))";
|
||||||
border = ["" "" "" " " "" "" "" " "];
|
border.__raw = "cmp.config.window.bordered()";
|
||||||
winhighlight = "FloatBorder:NormalFloat";
|
winhighlight = "FloatBorder:NormalFloat";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue