refactor(corfu): unwrap add-hook from after! block

add-hook handles void variables so there is no need to wrap it in an
after! block. This also makes it easier for the user to remove the hook.
This commit is contained in:
StrawberryTea 2024-02-17 10:45:49 -06:00 committed by Luigi Sartor Piucco
parent b54c64bc21
commit 0ea6968f74
No known key found for this signature in database
GPG key ID: 6FF1A01853A47A66

View file

@ -42,8 +42,7 @@
(add-to-list 'corfu-continue-commands #'+corfu-move-to-minibuffer)
(after! evil
(add-hook 'evil-insert-state-exit-hook #'corfu-quit))
(add-hook 'evil-insert-state-exit-hook #'corfu-quit)
(when (modulep! +icons)
(add-to-list 'corfu-margin-formatters #'nerd-icons-corfu-formatter))