From 3a151bbf094977668d85379b67154a5eb0d76c68 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 31 May 2024 19:16:13 +0100 Subject: [PATCH] lib/options: add `mkNullOrStr'` variant --- lib/options.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/options.nix b/lib/options.nix index 070c22c9..a630127c 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -29,7 +29,8 @@ rec { ); mkCompositeOption = description: options: mkCompositeOption' { inherit description options; }; - mkNullOrStr = mkNullOrOption (with nixvimTypes; maybeRaw str); + mkNullOrStr' = args: mkNullOrOption' (args // { type = with nixvimTypes; maybeRaw str; }); + mkNullOrStr = description: mkNullOrStr' { inherit description; }; mkNullOrLua = desc: