Fix evil-collection-minibuffer for first minibuffer

evil-minibuffer-setup-minibuffer didn't kick in until the second time
you invoked a minibuffer after startup.
This commit is contained in:
Henrik Lissner 2020-05-02 17:23:50 -04:00
parent ea1a1805b3
commit f998c912c1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -260,7 +260,8 @@ and complains if a module is loaded too early (during startup)."
(+evil-collection-init '(occur replace)))
(add-transient-hook! 'minibuffer-setup-hook
(when evil-collection-setup-minibuffer
(+evil-collection-init 'minibuffer)))
(+evil-collection-init 'minibuffer)
(evil-collection-minibuffer-insert)))
;; HACK Do this ourselves because evil-collection break's `eval-after-load'
;; load order by loading their target plugin before applying keys. This