purcell / emacs.d

An Emacs configuration bundle with batteries included
BSD 2-Clause "Simplified" License
6.82k stars 2.04k forks source link

Corfu-doc has been merged into Corfu #827

Closed xiliuya closed 1 year ago

xiliuya commented 1 year ago

corfu-doc - Documentation popup for Corfu

Important: this package has been merged into Corfu as one of its extensions under the name corfu-popupinfo. And this repository is deprecated now.

diff --git a/lisp/init-corfu.el b/lisp/init-corfu.el
index e22c290..b74efe2 100644
--- a/lisp/init-corfu.el
+++ b/lisp/init-corfu.el
@@ -21,9 +21,9 @@
   (setq-default corfu-quit-no-match 'separator)
   (add-hook 'after-init-hook 'global-corfu-mode)

-  (when (maybe-require-package 'corfu-doc)
+  (when (maybe-require-package 'corfu-popupinfo)
     (with-eval-after-load 'corfu
-      (add-hook 'corfu-mode-hook #'corfu-doc-mode)))
+      (add-hook 'corfu-mode-hook #'corfu-popupinf-mode)))

   ;; TODO: https://github.com/jdtsmith/kind-icon
   )
purcell commented 1 year ago

Thank you for the heads-up. I've committed a slightly different version of this fix.