mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
lib/options: add defaultNullOpts.mkProportion
This commit is contained in:
parent
4f4917be69
commit
2e600f5796
1 changed files with 2 additions and 0 deletions
|
@ -167,6 +167,8 @@ rec {
|
|||
|
||||
mkNum' = args: mkNullableWithRaw' (args // { type = types.number; });
|
||||
mkNum = pluginDefault: description: mkNum' { inherit pluginDefault description; };
|
||||
mkProportion' = args: mkNullableWithRaw' (args // { type = types.numbers.between 0.0 1.0; });
|
||||
mkProportion = pluginDefault: description: mkProportion' { inherit pluginDefault description; };
|
||||
mkInt' = args: mkNullableWithRaw' (args // { type = types.int; });
|
||||
mkInt = pluginDefault: description: mkNum' { inherit pluginDefault description; };
|
||||
# Positive: >0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue