summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--completion.org18
1 files changed, 6 insertions, 12 deletions
diff --git a/completion.org b/completion.org
index 597fcb9..a56f1fb 100644
--- a/completion.org
+++ b/completion.org
@@ -35,22 +35,16 @@
(use-package corfu
:ensure t
:demand t
- :init (setq corfu-cycle t
- corfu-count 10
- corfu-quit-no-match nil
- corfu-auto nil
+ :init (setq corfu-echo-documentation 0.25
+ corfu-cycle t
+ corfu-count 15
+ corfu-quit-no-match t ; setting this to nil
+ corfu-auto t ; and this to nil is another option
+ corfu-commit-predicate nil
corfu-min-width 20
corfu-max-width 100
corfu-excluded-modes '(eshell-mode))
:config
- (advice-add #'corfu--goto :after #'corfu--show-docsig)
-
- (defun corfu--show-docsig (_index)
- (let ((message-log-max nil))
- (if-let (fun (and (>= corfu--index 0)
- (plist-get corfu--extra-properties :company-docsig)))
- (message "%s" (funcall fun (nth corfu--index corfu--candidates)))
- (message ""))))
:bind (:map corfu-map
("TAB" . corfu-next)