lib/options: add mkNullOrStr' variant

This commit is contained in:
Matt Sturgeon 2024-05-31 19:16:13 +01:00
parent 9bf7724b98
commit 3a151bbf09
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -29,7 +29,8 @@ rec {
); );
mkCompositeOption = description: options: mkCompositeOption' { inherit description options; }; 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 = mkNullOrLua =
desc: desc: