vertico: use consult-line in +default/search-buffer

While it only gives one candidate per line, it's more important to have
something that uses the completion UI
This commit is contained in:
Itai Y. Efrat 2021-07-24 14:54:10 +03:00
parent 29bd530970
commit 770084fdda

View file

@ -31,7 +31,7 @@ If a selection is active, pre-fill the prompt with it."
(if (region-active-p) (if (region-active-p)
#'swiper-isearch-thing-at-point #'swiper-isearch-thing-at-point
#'swiper-isearch)) #'swiper-isearch))
((featurep! :completion vertico) #'isearch-forward)))) ((featurep! :completion vertico) #'consult-line))))
;;;###autoload ;;;###autoload
(defun +default/search-project (&optional arg) (defun +default/search-project (&optional arg)