mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/options: add mkNullOrLua'
variant
This commit is contained in:
parent
3a151bbf09
commit
207bfc6e69
1 changed files with 10 additions and 8 deletions
|
@ -32,14 +32,16 @@ rec {
|
|||
mkNullOrStr' = args: mkNullOrOption' (args // { type = with nixvimTypes; maybeRaw str; });
|
||||
mkNullOrStr = description: mkNullOrStr' { inherit description; };
|
||||
|
||||
mkNullOrLua =
|
||||
desc:
|
||||
lib.mkOption {
|
||||
type = lib.types.nullOr nixvimTypes.strLua;
|
||||
default = null;
|
||||
description = desc;
|
||||
apply = mkRaw;
|
||||
};
|
||||
mkNullOrLua' =
|
||||
args:
|
||||
mkNullOrOption' (
|
||||
args
|
||||
// {
|
||||
type = nixvimTypes.strLua;
|
||||
apply = mkRaw;
|
||||
}
|
||||
);
|
||||
mkNullOrLua = description: mkNullOrLua' { inherit description; };
|
||||
|
||||
mkNullOrLuaFn =
|
||||
desc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue