1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

broot: allow multiple keyboard keys per verb

To allow multiple keys the verb options need to accept listOf str.
This commit is contained in:
xwjqv 2024-10-05 20:26:47 +02:00 committed by Robert Helgesson
parent 1d9b4a3e60
commit 800a191f33
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -15,7 +15,7 @@ let
modal = mkEnableOption "modal (vim) mode";
verbs = mkOption {
type = with types; listOf (attrsOf (either bool str));
type = with types; listOf (attrsOf (oneOf [ bool str (listOf str) ]));
default = [ ];
example = literalExpression ''
[
@ -46,6 +46,9 @@ let
`key` (optional)
: a keyboard key triggering execution
`keys` (optional)
: multiple keyboard keys each triggering execution
`shortcut` (optional)
: an alternate way to call the verb (without
the arguments part)