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 86e5994003
commit 775749c4cf

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))