diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -127,6 +127,36 @@ | |||
127 | (vertico-mode)) | 127 | (vertico-mode)) |
128 | 128 | ||
129 | 129 | ||
130 | ;; --------------------------------- | ||
131 | ;; Text completion | ||
132 | ;; --------------- | ||
133 | ;; Corfu provides in-buffer text | ||
134 | ;; completion, and is the | ||
135 | ;; counterpart to vertico. | ||
136 | ;; --------------------------------- | ||
137 | |||
138 | (use-package corfu | ||
139 | :straight (corfu :files (:defaults "extensions/*") | ||
140 | :includes (corfu-info corfu-history)) | ||
141 | :config | ||
142 | (setq corfu-auto t | ||
143 | corfu-auto-prefix 2 | ||
144 | corfu-auto-delay 0.1 | ||
145 | corfu-min-width 40 | ||
146 | corfu-max-width corfu-min-width | ||
147 | corfu-count 8 | ||
148 | corfu-scroll-margin 3 | ||
149 | corfu-cycle nil | ||
150 | corfu-popupinfo-delay 0.15 | ||
151 | corfu-quit-at-boundary t | ||
152 | corfu-separator ?\s | ||
153 | corfu-quit-no-match 'separator) | ||
154 | :init | ||
155 | (global-corfu-mode) | ||
156 | (corfu-popupinfo-mode) | ||
157 | (corfu-indexed-mode)) | ||
158 | |||
159 | |||
130 | 160 | ||
131 | 161 | ||
132 | ;; --------------------------------------------------------------------- | 162 | ;; --------------------------------------------------------------------- |