plugins/which-key: add key group support for registrations (#802)

* plugins/which-key: add registration support for key groups

Modified the type of registration to support registration of key groups with "groupkey" = { name = "name";};.

* plugins/which-key: relax the restrition on the type of registrations and more tests have been added

* plugins/which-key: add more tests for groups within groups
This commit is contained in:
Phie Ash 2023-12-11 22:12:56 +08:00 committed by GitHub
parent c1cbb00126
commit 7fbb9240de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 3 deletions

View file

@ -14,7 +14,7 @@ with lib; {
package = helpers.mkPackageOption "whick-key-nvim" pkgs.vimPlugins.which-key-nvim;
registrations = mkOption {
type = with types; attrsOf str;
type = with types; attrsOf anything;
default = {};
description = "Manually register the description of mappings.";
example = {