Fix ivy-prescient disabling fuzzy search

It can set up itself.
This commit is contained in:
Henrik Lissner 2020-01-12 03:07:35 -05:00
parent 1018dea7b7
commit 25eb9176ad
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -26,10 +26,10 @@ results buffer.")
#'+ivy-prescient-non-fuzzy
#'ivy--regex-plus))
(alt-search-fn
(cond ((featurep! +prescient) #'ivy-prescient-re-builder)
((featurep! +fuzzy) #'ivy--regex-fuzzy)
;; Ignore order for non-fuzzy searches by default
(#'ivy--regex-ignore-order))))
(if (featurep! +fuzzy)
#'ivy--regex-fuzzy
;; Ignore order for non-fuzzy searches by default
#'ivy--regex-ignore-order)))
(setq ivy-re-builders-alist
`((counsel-rg . ,standard-search-fn)
(swiper . ,standard-search-fn)
@ -344,7 +344,6 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
(if (featurep! +fuzzy)
'(literal regexp initialism fuzzy)
'(literal regexp initialism))
ivy-prescient-enable-filtering nil ; we do this ourselves
ivy-prescient-retain-classic-highlighting t)
:config