refactor(vertico): don't use bind-key

This is the only internal usage of :bind, which I want to avoid, because
it pulls in bind-key, which offers no real benefit over just about any
other key binding function or macro, so I'd rather use what is already
available (like map!).
This commit is contained in:
Henrik Lissner 2024-03-22 14:31:55 -04:00
parent 506192199f
commit 18c88621a4
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -198,10 +198,13 @@ orderless."
(use-package! consult-dir (use-package! consult-dir
:bind (([remap list-directory] . consult-dir) :defer t
:init
(map! [remap list-directory] #'consult-dir
(:after vertico
:map vertico-map :map vertico-map
("C-x C-d" . consult-dir) "C-x C-d" #'consult-dir
("C-x C-j" . consult-dir-jump-file)) "C-x C-j" #'consult-dir-jump-file))
:config :config
(when (modulep! :tools docker) (when (modulep! :tools docker)
;; TODO: Replace with `tramp-container--completion-function' when we drop ;; TODO: Replace with `tramp-container--completion-function' when we drop