mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
misc: ensure all options have a description
This commit is contained in:
parent
3be9db71c2
commit
7a2d065cce
13 changed files with 127 additions and 43 deletions
|
@ -69,12 +69,21 @@ with lib;
|
|||
window =
|
||||
let
|
||||
spacingOptions = types.submodule {
|
||||
options = {
|
||||
top = mkOption { type = types.int; };
|
||||
right = mkOption { type = types.int; };
|
||||
bottom = mkOption { type = types.int; };
|
||||
left = mkOption { type = types.int; };
|
||||
};
|
||||
options =
|
||||
genAttrs
|
||||
[
|
||||
"top"
|
||||
"right"
|
||||
"bottom"
|
||||
"left"
|
||||
]
|
||||
(
|
||||
n:
|
||||
mkOption {
|
||||
type = types.ints.unsigned;
|
||||
description = "Spacing at the ${n}.";
|
||||
}
|
||||
);
|
||||
};
|
||||
in
|
||||
{
|
||||
|
@ -98,18 +107,26 @@ with lib;
|
|||
let
|
||||
rangeOption = types.submodule {
|
||||
options = {
|
||||
min = mkOption { type = types.int; };
|
||||
max = mkOption { type = types.int; };
|
||||
min = mkOption {
|
||||
type = types.int;
|
||||
description = "Minimum size.";
|
||||
};
|
||||
max = mkOption {
|
||||
type = types.int;
|
||||
description = "Maximum size.";
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
height =
|
||||
helpers.defaultNullOpts.mkNullable rangeOption "{min = 4; max = 25;}"
|
||||
"min and max height of the columns";
|
||||
width =
|
||||
helpers.defaultNullOpts.mkNullable rangeOption "{min = 20; max = 50;}"
|
||||
"min and max width of the columns";
|
||||
height = helpers.defaultNullOpts.mkNullable rangeOption {
|
||||
min = 4;
|
||||
max = 25;
|
||||
} "min and max height of the columns";
|
||||
width = helpers.defaultNullOpts.mkNullable rangeOption {
|
||||
min = 20;
|
||||
max = 50;
|
||||
} "min and max width of the columns";
|
||||
spacing = helpers.defaultNullOpts.mkInt 3 "spacing between columns";
|
||||
align = helpers.defaultNullOpts.mkEnumFirstDefault [
|
||||
"left"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue