mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
helpers/mkPlugin: remove useless 'value' parameter
This commit is contained in:
parent
22fb5df657
commit
f1c8f9a8d2
1 changed files with 2 additions and 5 deletions
|
@ -335,9 +335,7 @@ with lib; rec {
|
||||||
mapAttrs'
|
mapAttrs'
|
||||||
(optName: opt: {
|
(optName: opt: {
|
||||||
name = globalPrefix + opt.global;
|
name = globalPrefix + opt.global;
|
||||||
value =
|
value = cfg.${optName};
|
||||||
ifNonNull' cfg.${optName}
|
|
||||||
(opt.value cfg.${optName});
|
|
||||||
})
|
})
|
||||||
options;
|
options;
|
||||||
# does this evaluate package?
|
# does this evaluate package?
|
||||||
|
@ -392,7 +390,6 @@ with lib; rec {
|
||||||
description ? null,
|
description ? null,
|
||||||
example ? null,
|
example ? null,
|
||||||
default ? null,
|
default ? null,
|
||||||
value ? v: v,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
option = mkOption {
|
option = mkOption {
|
||||||
|
@ -400,7 +397,7 @@ with lib; rec {
|
||||||
inherit default description example;
|
inherit default description example;
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit value global;
|
inherit global;
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptionsOptions = {
|
extraOptionsOptions = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue