Inprove corfu key mapping.

Escape key now is not globally taken, tab do nothing and
also all keys only was triggered when the corfu pop is open.
This commit is contained in:
KJ 2024-04-26 02:52:40 -04:00
parent 7eaa783f2e
commit e276cc0eec

View File

@ -21,7 +21,9 @@
:includes (corfu-info corfu-history)) :includes (corfu-info corfu-history))
:hook ((elpaca-after-init . global-corfu-mode) :hook ((elpaca-after-init . global-corfu-mode)
(corfu-mode . corfu-popupinfo-mode)) (corfu-mode . corfu-popupinfo-mode))
:bind (("<escape>" . corfu-quit) :bind (:map corfu-map
([tab] . nil)
("<escape>" . corfu-quit)
("<SPC>" . corfu-insert-separator)) ("<SPC>" . corfu-insert-separator))
:custom :custom
(corfu-auto t) (corfu-auto t)