completion/ivy: fix +fuzzy & +prescient

Causd by ivy-re-builders-alist overwriting their modifications.
This commit is contained in:
Henrik Lissner 2019-06-11 18:11:51 +02:00
parent 1a589c546a
commit b1ecd68381
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -46,6 +46,9 @@ immediately runs it on the current candidate (ending the ivy session)."
(def-package! ivy (def-package! ivy
:defer 1 :defer 1
:after-call pre-command-hook :after-call pre-command-hook
:init
;; Ignore order for non-fuzzy searches by default
(setq ivy-re-builders-alist '((t . ivy--regex-ignore-order)))
:config :config
(setq ivy-height 15 (setq ivy-height 15
ivy-wrap t ivy-wrap t
@ -64,9 +67,7 @@ immediately runs it on the current candidate (ending the ivy session)."
;; don't quit minibuffer on delete-error ;; don't quit minibuffer on delete-error
ivy-on-del-error-function nil ivy-on-del-error-function nil
;; enable ability to select prompt (alternative to `ivy-immediate-done') ;; enable ability to select prompt (alternative to `ivy-immediate-done')
ivy-use-selectable-prompt t ivy-use-selectable-prompt t)
;; Ignore order for non-fuzzy searches by default
ivy-re-builders-alist '((t . ivy--regex-ignore-order)))
;; Ensure a jump point is registered before jumping to new locations with ivy ;; Ensure a jump point is registered before jumping to new locations with ivy
(defvar +ivy--origin nil) (defvar +ivy--origin nil)