plugins/utils: normalize plugin defaults

This commit is contained in:
Matt Sturgeon 2024-06-11 16:54:57 +01:00
parent b10a391bd0
commit 6ab2a39e6a
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
53 changed files with 1434 additions and 1221 deletions

View file

@ -76,20 +76,17 @@ in
'';
modes =
helpers.defaultNullOpts.mkNullable
(
with types;
listOf (enum [
"/"
"?"
":"
])
)
''["/" "?"]''
''
List of modes which wilderw will be active in.
Possible elements: '/', '?' and ':'
'';
helpers.defaultNullOpts.mkListOf
(types.enum [
"/"
"?"
":"
])
[
"/"
"?"
]
"List of modes that wilder will be active in.";
wildcharm =
helpers.defaultNullOpts.mkNullable (with types; either str (enum [ false ])) "&wildchar"