From 06e4a4e0c8eba3df0f106dc58200c19674aecfa0 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 2 Feb 2024 23:03:47 +0100 Subject: [PATCH] helpers/options: allow raw values for border options --- lib/options.nix | 2 +- tests/test-sources/plugins/completion/nvim-cmp.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/options.nix b/lib/options.nix index b6d9f8d3..1f242da1 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -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 = '' diff --git a/tests/test-sources/plugins/completion/nvim-cmp.nix b/tests/test-sources/plugins/completion/nvim-cmp.nix index ea8e5d17..781513ad 100644 --- a/tests/test-sources/plugins/completion/nvim-cmp.nix +++ b/tests/test-sources/plugins/completion/nvim-cmp.nix @@ -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"; }; };