Abort company popups when entering normal mode

You likely don't need completion anymore once you exit insert state.
This commit is contained in:
Henrik Lissner 2020-02-20 19:48:27 -05:00
parent 55e83da9e7
commit 7f9623249f
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -20,7 +20,8 @@
:config
(when (featurep! :editor evil)
(add-hook 'company-mode-hook #'evil-normalize-keymaps)
;; Don't persist company popups when switching back to normal mode.
(add-hook 'evil-normal-state-entry-hook #'company-abort)
;; Allow users to switch between backends on the fly. E.g. C-x C-s followed
;; by C-x C-n, will switch from `company-yasnippet' to
;; `company-dabbrev-code'.