mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +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:
|
mkCompositeOption = desc: options:
|
||||||
mkNullOrOption (types.submodule {inherit options;}) desc;
|
mkNullOrOption (types.submodule {inherit options;}) desc;
|
||||||
|
|
||||||
|
mkNullOrStr = mkNullOrOption (with nixvimTypes; maybeRaw str);
|
||||||
|
|
||||||
mkNullOrLua = desc:
|
mkNullOrLua = desc:
|
||||||
lib.mkOption {
|
lib.mkOption {
|
||||||
type = lib.types.nullOr nixvimTypes.strLua;
|
type = lib.types.nullOr nixvimTypes.strLua;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue