minad / corfu

:desert_island: corfu.el - COmpletion in Region FUnction
GNU General Public License v3.0
1.06k stars 42 forks source link

Can't go back to Normal mode after completion #433

Closed italoaa closed 3 months ago

italoaa commented 3 months ago

Currently this is my evil, evil-collection and corfu configurations:

(use-package evil
  :demand t
  :init
  (setq evil-want-integration t
        evil-want-keybinding nil
        evil-want-C-u-scroll t
        evil-vsplit-window-right t
        evil-split-window-below t)

  (setq evil-undo-system 'undo-redo)
  (evil-mode))

(use-package evil-collection
  :after evil
  :config
  (evil-collection-init))

(use-package corfu
  ;; Optional customizations
  :custom
  (corfu-auto t)
  (corfu-auto-prefix 2)
  (corfu-auto-delay 0.25)
  (tab-always-indent 'complete)

  :init
  (global-corfu-mode))

Everything is perfect until the corfu UI pops up and I get to choose between the options. From now on the escape key seems to not be bound to anything. Before the corfu UI it is bound to (evil-force-normal-state) but once the UI appears the only keymap I see is "ESC ESC ESC" or "M-ESC ESC" it is bound to (keyboard-escape-quit)

I appreaciate all the help I could get thank you I love the packageeee and the mentality.