completion/ivy: fix ivy-re-builders-alist delegates

This commit is contained in:
Henrik Lissner 2019-12-13 22:49:26 -05:00
parent cdf4604288
commit a24b750c6c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 12 additions and 2 deletions

View file

@ -13,6 +13,16 @@
(and (not (eq buffer (current-buffer)))
(+workspace-contains-buffer-p buffer))))
;;;###autoload
(defun +ivy-standard-search (str)
"TODO"
(funcall +ivy-standard-search-fn str))
;;;###autoload
(defun +ivy-alternative-search (str)
"TODO"
(funcall +ivy-alternative-search-fn str))
;;;###autoload
(defun +ivy-rich-buffer-name (candidate)
"Display the buffer name.

View file

@ -49,9 +49,9 @@ results buffer.")
counsel-grep
swiper
swiper-isearch)
collect (cons cmd +ivy-standard-search-fn))
collect (cons cmd #'+ivy-alternative-search))
;; Ignore order for non-fuzzy searches by default
(t . ,+ivy-alternative-search-fn)))
(t . +ivy-standard-search)))
(define-key!
[remap switch-to-buffer] #'+ivy/switch-buffer