tweak(corfu): quit corfu on evil quit
This commit is contained in:
parent
e52b613a69
commit
a47da9af71
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue