about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/init.el b/init.el index b848593..31fade2 100644 --- a/init.el +++ b/init.el
@@ -1461,16 +1461,15 @@ if ripgrep is installed, otherwise `consult-grep'."
1461 (:also-load vertico-mouse) 1461 (:also-load vertico-mouse)
1462 (vertico-mouse-mode +1) 1462 (vertico-mouse-mode +1)
1463 1463
1464 ;; Workarounds! 1464 ;; Prefix the current candidate with ": ". From Vertico wiki.
1465 ;; (with-eval-after-load 'org 1465 (advice-add #'vertico--format-candidate :around
1466 ;; (when (version< org-version "9.5") 1466 (lambda (orig cand prefix suffix index _start)
1467 ;; (defun disable-selection () 1467 (setq cand (funcall orig cand prefix suffix index _start))
1468 ;; (when (eq minibuffer-completion-table #'org-tags-completion-function) 1468 (concat
1469 ;; (setq-local vertico-map minibuffer-local-completion-map 1469 (if (= vertico--index index)
1470 ;; completion-cycle-threshold nil 1470 (propertize ": " 'face 'vertico-current)
1471 ;; completion-styles '(basic)))) 1471 " ")
1472 ;; (advice-add #'vertico--setup :before #'disable-selection))) 1472 cand))))
1473 )
1474 1473
1475(setup (:straight vuiet) 1474(setup (:straight vuiet)
1476 (:needs "youtube-dl" 1475 (:needs "youtube-dl"