Skip to content

Commit

Permalink
Fix evil bindings which-key integration
Browse files Browse the repository at this point in the history
  • Loading branch information
condy0919 committed Jun 12, 2024
1 parent 129ee89 commit 7faabdc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lisp/init-evil.el
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,12 @@ if LOCALLEADER is nil, otherwise \"<localleader>\"."
;; Save which-key (key . replacement).
(pcase def
(`(:wk ,replacement)
(push (cons (concat prefix key) replacement) wk-replacements)))))
(push (cons (concat "SPC " key) replacement) wk-replacements)))))
;; which-key integration.
;; XXX: replacement for localleader NOT supported.
(with-eval-after-load 'which-key
(cl-loop for (key . replacement) in wk-replacements
unless localleader
do (which-key-add-key-based-replacements key replacement)))))
(cl-loop for (key . replacement) in wk-replacements
unless localleader
do (which-key-add-key-based-replacements key replacement))))

(define-leader-key 'normal 'global nil
;; SPC, quit minibuffer.
Expand Down

0 comments on commit 7faabdc

Please sign in to comment.