From cee2f438f261e4066213b519267e595745e26d0d Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sat, 23 Dec 2023 18:09:35 -0800 Subject: [PATCH] Add temp fix for corfu and evil-collection --- init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index d776629..0246ea8 100644 --- a/init.el +++ b/init.el @@ -375,7 +375,12 @@ visual states." (global-corfu-mode 1) (corfu-popupinfo-mode 1) :config - (add-to-list 'corfu-continue-commands #'corfu-move-to-minibuffer)) + ;; temp fixes for evil-collection#766 + (advice-remove #'corfu--setup #'evil-normalize-keymaps) + (advice-add #'corfu--setup :after (lambda (&rest _) (evil-normalize-keymaps))) + (advice-remove #'corfu--teardown #'evil-normalize-keymaps) + (advice-add #'corfu--teardown :after (lambda (&rest _) (evil-normalize-keymaps))) + (add-to-list 'corfu-continue-commands #'my/corfu-move-to-minibuffer)) (use-package corfu-terminal :init (corfu-terminal-mode 1))