mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
helpers/mkPlugin: remove useless bool conversion
This commit is contained in:
parent
e3ef5dae2b
commit
22fb5df657
1 changed files with 1 additions and 11 deletions
|
@ -386,23 +386,13 @@ with lib; rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
globalVal = val:
|
|
||||||
if builtins.isBool val
|
|
||||||
then
|
|
||||||
(
|
|
||||||
if !val
|
|
||||||
then 0
|
|
||||||
else 1
|
|
||||||
)
|
|
||||||
else val;
|
|
||||||
|
|
||||||
mkDefaultOpt = {
|
mkDefaultOpt = {
|
||||||
type,
|
type,
|
||||||
global,
|
global,
|
||||||
description ? null,
|
description ? null,
|
||||||
example ? null,
|
example ? null,
|
||||||
default ? null,
|
default ? null,
|
||||||
value ? v: (globalVal v),
|
value ? v: v,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
option = mkOption {
|
option = mkOption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue