mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
lib/options: add defaultNullOpts.mkFloat
This commit is contained in:
parent
24ac8f651d
commit
91227dca9e
3 changed files with 4 additions and 2 deletions
|
@ -167,6 +167,8 @@ rec {
|
|||
|
||||
mkNum' = args: mkNullableWithRaw' (args // { type = types.number; });
|
||||
mkNum = pluginDefault: description: mkNum' { inherit pluginDefault description; };
|
||||
mkFloat' = args: mkNullableWithRaw' (args // { type = types.float; });
|
||||
mkFloat = pluginDefault: description: mkFloat' { 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; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue