Skip to content

Commit

Permalink
helpers: add mkNullOrStr
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 6, 2024
1 parent ed02648 commit a40a0c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/helpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ with lib; rec {
mkCompositeOption = desc: options:
mkNullOrOption (types.submodule {inherit options;}) desc;

mkNullOrStr = mkNullOrOption (with nixvimTypes; maybeRaw str);

mkNullOrLua = desc:
lib.mkOption {
type = lib.types.nullOr nixvimTypes.strLua;
Expand Down

0 comments on commit a40a0c6

Please sign in to comment.