mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins.*: use defaultNullOpts.mkProportion wherever possible
This commit is contained in:
parent
2e600f5796
commit
24ac8f651d
11 changed files with 31 additions and 37 deletions
|
@ -164,7 +164,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
Sets the shade to apply to the inactive split or window or buffer.
|
||||
'';
|
||||
|
||||
percentage = defaultNullOpts.mkNullable (types.numbers.between 0.0 1.0) 0.15 ''
|
||||
percentage = defaultNullOpts.mkProportion 0.15 ''
|
||||
percentage of the shade to apply to the inactive window, split or buffer.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -133,7 +133,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
lib.mapAttrs
|
||||
(
|
||||
name: color:
|
||||
defaultNullOpts.mkNullable (types.numbers.between 0.0 1.0) 0 ''
|
||||
defaultNullOpts.mkProportion 0 ''
|
||||
Severity [0, 1] for ${name} (${color}).
|
||||
''
|
||||
)
|
||||
|
|
|
@ -118,7 +118,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
Set a darker background on sidebar-like windows.
|
||||
'';
|
||||
|
||||
day_brightness = defaultNullOpts.mkNullable (lib.types.numbers.between 0.0 1.0) 0.3 ''
|
||||
day_brightness = defaultNullOpts.mkProportion 0.3 ''
|
||||
Adjusts the brightness of the colors of the **Day** style.
|
||||
Number between 0 and 1, from dull to vibrant colors.
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue