about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el22
1 files changed, 20 insertions, 2 deletions
diff --git a/init.el b/init.el index 4b493eb..a564ac7 100644 --- a/init.el +++ b/init.el
@@ -1316,13 +1316,31 @@ if ripgrep is installed, otherwise `consult-grep'."
1316 1316
1317(setup (:straight (vertico 1317(setup (:straight (vertico
1318 :host github 1318 :host github
1319 :repo "minad/vertico")) 1319 :repo "minad/vertico"
1320 :files ("*" "extensions/*"
1321 (:exclude ".git"))))
1322
1320 (:option resize-mini-windows 'grow-only 1323 (:option resize-mini-windows 'grow-only
1321 vertico-count-format nil 1324 vertico-count-format nil
1322 vertico-cycle t) 1325 vertico-cycle t)
1326
1323 (if (boundp 'comp-deferred-compilation-deny-list) 1327 (if (boundp 'comp-deferred-compilation-deny-list)
1324 (add-to-list 'comp-deferred-compilation-deny-list "vertico")) 1328 (add-to-list 'comp-deferred-compilation-deny-list "vertico"))
1325 (vertico-mode +1)) 1329
1330 (vertico-mode +1)
1331
1332 ;; Extensions!
1333 (:also-load vertico-mouse)
1334 (vertico-mouse-mode +1)
1335
1336 ;; Workarounds!
1337 (when (version< org-version "9.5")
1338 (defun disable-selection ()
1339 (when (eq minibuffer-completion-table #'org-tags-completion-function)
1340 (setq-local vertico-map minibuffer-local-completion-map
1341 completion-cycle-threshold nil
1342 completion-styles '(basic))))
1343 (advice-add #'vertico--setup :before #'disable-selection)))
1326 1344
1327(setup (:straight vuiet) 1345(setup (:straight vuiet)
1328 (:needs "youtube-dl" 1346 (:needs "youtube-dl"