mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
helpers: add mkNullOrStr
This commit is contained in:
parent
ed02648368
commit
a40a0c679c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue