Merge pull request #972 from lackac/which-key-deregister
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions

binds/which-key: allow deregistering binds or groups
This commit is contained in:
Soliprem 2025-07-09 17:30:18 +02:00 committed by GitHub
commit 9aa9088564
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -445,3 +445,4 @@
- Restore vim-dirtytalk plugin and fix ordering with spellcheck in generated config. - Restore vim-dirtytalk plugin and fix ordering with spellcheck in generated config.
- Fix lualine separator options - Fix lualine separator options
- Add [neogit], an interactive and powerful Git interface for Neovim, inspired by Magit - Add [neogit], an interactive and powerful Git interface for Neovim, inspired by Magit
- Allow deregistering which-key binds or groups by setting them to `null`

View file

@ -10,7 +10,7 @@
inherit (lib.nvim.dag) entryAnywhere; inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.binds.whichKey; 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 { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim = { vim = {