Abort company popups when entering normal mode
You likely don't need completion anymore once you exit insert state.
This commit is contained in:
parent
55e83da9e7
commit
7f9623249f
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@
|
||||||
:config
|
:config
|
||||||
(when (featurep! :editor evil)
|
(when (featurep! :editor evil)
|
||||||
(add-hook 'company-mode-hook #'evil-normalize-keymaps)
|
(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
|
;; 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
|
;; by C-x C-n, will switch from `company-yasnippet' to
|
||||||
;; `company-dabbrev-code'.
|
;; `company-dabbrev-code'.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue