fix(evil): set evil-want-keybinding sooner

Early loading of evil-collection may trigger an annoying (and
unsuppressable) warning, otherwise.
This commit is contained in:
Henrik Lissner 2024-08-09 15:54:35 -04:00
parent 334157d741
commit 877008a00e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -2,6 +2,9 @@
(defvar evil-collection-key-blacklist) (defvar evil-collection-key-blacklist)
;; must be set before evil/evil-collection is loaded
(defvar evil-want-keybinding nil)
;; We load evil-collection ourselves for these reasons: ;; We load evil-collection ourselves for these reasons:
;; ;;
;; 1. To truly lazy load it. Some of its modules, like ;; 1. To truly lazy load it. Some of its modules, like
@ -23,9 +26,7 @@
(not (doom-context-p 'reload)) (not (doom-context-p 'reload))
(modulep! +everywhere)) (modulep! +everywhere))
(setq evil-collection-company-use-tng (modulep! :completion company +tng) (setq evil-collection-company-use-tng (modulep! :completion company +tng))
;; must be set before evil/evil-collection is loaded
evil-want-keybinding nil)
(defvar +evil-collection-disabled-list (defvar +evil-collection-disabled-list
'(anaconda-mode '(anaconda-mode