binds/which-key: allow deregistering binds or groups

This commit is contained in:
Laszlo Bacsi 2025-06-26 15:25:57 +02:00
commit f728834aa3
No known key found for this signature in database
GPG key ID: 7AC6E86EE9E48853
2 changed files with 2 additions and 1 deletions

View file

@ -10,7 +10,7 @@
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.binds.whichKey;
register = mapAttrsToList (n: v: mkLuaInline "{ '${n}', desc = '${v}' }") cfg.register;
register = mapAttrsToList (n: v: lib.lists.optional (! isNull v) (mkLuaInline "{ '${n}', desc = '${v}' }")) cfg.register;
in {
config = mkIf cfg.enable {
vim = {