diff --git a/lib/options.nix b/lib/options.nix index bc115eda..d8382662 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -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; }); diff --git a/plugins/by-name/neorg/default.nix b/plugins/by-name/neorg/default.nix index 22005178..25891562 100644 --- a/plugins/by-name/neorg/default.nix +++ b/plugins/by-name/neorg/default.nix @@ -181,7 +181,7 @@ lib.nixvim.plugins.mkNeovimPlugin { ]; }; - float_precision = defaultNullOpts.mkNullable types.float 0.01 '' + float_precision = defaultNullOpts.mkFloat 0.01 '' Can limit the number of decimals displayed for floats. ''; }; diff --git a/plugins/by-name/render-markdown/default.nix b/plugins/by-name/render-markdown/default.nix index 7ba89df4..814e630b 100644 --- a/plugins/by-name/render-markdown/default.nix +++ b/plugins/by-name/render-markdown/default.nix @@ -52,7 +52,7 @@ lib.nixvim.plugins.mkNeovimPlugin { as allowing this plugin to provide logical defaults for a "batteries included" experience. ''; - max_file_size = defaultNullOpts.mkNullable types.float 10.0 '' + max_file_size = defaultNullOpts.mkFloat 10.0 '' The maximum file size that this plugin will attempt to render in megabytes. This plugin only does rendering for what is visible within the viewport so the size of the