tweak(corfu): quit corfu on evil quit

This commit is contained in:
Luigi Sartor Piucco 2023-10-02 13:13:23 -03:00
parent e52b613a69
commit a47da9af71
No known key found for this signature in database
GPG key ID: 6FF1A01853A47A66

View file

@ -85,13 +85,16 @@ must be present.")
tab-always-indent (if (modulep! +tng) 'complete tab-always-indent))
(when (modulep! +orderless)
(after! 'lsp-mode
(after! lsp-mode
(add-to-list 'completion-category-overrides
`(lsp-capf (styles ,@+corfu-completion-styles ,(when (modulep! +orderless) 'orderless)))))
(after! 'eglot
(after! eglot
(add-to-list 'completion-category-overrides
`(eglot (styles ,@+corfu-completion-styles ,(when (modulep! +orderless) 'orderless))))))
(after! evil
(add-hook 'evil-insert-state-exit-hook #'corfu-quit))
;; For the icons, we use a custom margin formatter, which simply reads the
;; mapping in `+corfu-icon-mapping'.
(when (modulep! +icons)