mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 01:38:40 +02:00
plugins/oil: Fix statix error (#393)
This commit is contained in:
parent
246f811084
commit
b6f55f619c
1 changed files with 2 additions and 4 deletions
|
@ -10,16 +10,14 @@ with lib; let
|
||||||
|
|
||||||
fractionType = types.numbers.between 0.0 1.0;
|
fractionType = types.numbers.between 0.0 1.0;
|
||||||
|
|
||||||
mkSizeOption = default: desc:
|
mkSizeOption =
|
||||||
helpers.defaultNullOpts.mkNullable
|
helpers.defaultNullOpts.mkNullable
|
||||||
(with types;
|
(with types;
|
||||||
oneOf [
|
oneOf [
|
||||||
int
|
int
|
||||||
fractionType
|
fractionType
|
||||||
(listOf (either int fractionType))
|
(listOf (either int fractionType))
|
||||||
])
|
]);
|
||||||
default
|
|
||||||
desc;
|
|
||||||
|
|
||||||
commonWindowOptions = {
|
commonWindowOptions = {
|
||||||
maxWidth = mkSizeOption "0.9" ''
|
maxWidth = mkSizeOption "0.9" ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue