From d792b7f99b3ddc31e060cfd7f2a1206733b494a3 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sun, 30 Apr 2023 03:35:44 -0400 Subject: Use `vertico` for minibuffer completion --- init.el | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/init.el b/init.el index f37ad3a..1f24b81 100644 --- a/init.el +++ b/init.el @@ -103,6 +103,32 @@ +;; --------------------------------------------------------------------- +;;; Completion +;; ----------- +;; Completion refers to the suggestions you get when you type a few +;; characters in almost any modern IDE. MMOSMacs attempts to have +;; completion in as many places as possible. +;; --------------------------------------------------------------------- + +;; --------------------------------- +;; Minibuffer completion +;; --------------------- +;; Vertico provides minibuffer when +;; typing commands and stuff like +;; that. +;; --------------------------------- + +(use-package vertico + :straight t + :config + (setq vertico-count 5 + vertico-cycle nil) + (vertico-mode)) + + + + ;; --------------------------------------------------------------------- ;;; Text Editor ;; ------------ -- cgit v1.2.3 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(+) 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 From 084b3ae088309406ecc5a44072957833f34cc004 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sun, 30 Apr 2023 03:48:50 -0400 Subject: Use `marginalia` minibuffer hints --- init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/init.el b/init.el index 5fff6bf..da2b216 100644 --- a/init.el +++ b/init.el @@ -157,6 +157,18 @@ (corfu-indexed-mode)) +;; --------------------------------- +;; Minibuffer hints +;; ---------------- +;; Add descriptions and keybind +;; hints to minibuffer completions. +;; --------------------------------- + +(use-package marginalia + :straight t + :init (marginalia-mode)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3 From cd8d5b3395e7a211d56d4b7f79619ac4dc879b18 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sun, 30 Apr 2023 03:52:05 -0400 Subject: Use `orderless` completion suggestions --- init.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/init.el b/init.el index da2b216..3ec63f9 100644 --- a/init.el +++ b/init.el @@ -169,6 +169,21 @@ :init (marginalia-mode)) +;; --------------------------------- +;; Orderless completion +;; -------------------- +;; A different ordering method for +;; completion suggestions +;; --------------------------------- + +(use-package orderless + :straight t + :config + (setq completion-styles '(orderless basic) + completion-category-defaults nil + completion-category-overrides '((file (styles partial-completion))))) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3