mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +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 = {
|
||||
type,
|
||||
global,
|
||||
description ? null,
|
||||
example ? null,
|
||||
default ? null,
|
||||
value ? v: (globalVal v),
|
||||
value ? v: v,
|
||||
...
|
||||
}: {
|
||||
option = mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue