From e6b03be03f00845591138cc5e5770129d745fc6d Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sun, 30 Apr 2023 03:41:14 -0400 Subject: Use `corfu` for buffer text completion --- init.el | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 1f24b81..5fff6bf 100644 --- a/init.el +++ b/init.el @@ -127,6 +127,36 @@ (vertico-mode)) +;; --------------------------------- +;; Text completion +;; --------------- +;; Corfu provides in-buffer text +;; completion, and is the +;; counterpart to vertico. +;; --------------------------------- + +(use-package corfu + :straight (corfu :files (:defaults "extensions/*") + :includes (corfu-info corfu-history)) + :config + (setq corfu-auto t + corfu-auto-prefix 2 + corfu-auto-delay 0.1 + corfu-min-width 40 + corfu-max-width corfu-min-width + corfu-count 8 + corfu-scroll-margin 3 + corfu-cycle nil + corfu-popupinfo-delay 0.15 + corfu-quit-at-boundary t + corfu-separator ?\s + corfu-quit-no-match 'separator) + :init + (global-corfu-mode) + (corfu-popupinfo-mode) + (corfu-indexed-mode)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3