Activate ivy-prescient-mode on ivy-mode

This commit is contained in:
Henrik Lissner 2018-08-03 21:37:42 +02:00
parent 4db89a2fb4
commit 35b88a597b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -176,7 +176,7 @@ immediately runs it on the current candidate (ending the ivy session)."
(def-package! ivy-prescient
:after ivy
:hook (ivy-mode . ivy-prescient-mode)
:init
(if (featurep! +fuzzy)
(setq prescient-filter-method 'fuzzy)
@ -184,6 +184,7 @@ immediately runs it on the current candidate (ending the ivy session)."
ivy-prescient-retain-classic-highlighting t))
:config
(setq prescient-save-file (concat doom-cache-dir "presclient-save.el"))
(prescient-persist-mode +1)
;; `ivy-prescient' is too slow for fuzzy projectile-find-file and
;; counsel-file-jump, so ensure they're ignored
@ -191,10 +192,7 @@ immediately runs it on the current candidate (ending the ivy session)."
(add-to-list 'ivy-re-builders-alist '(counsel-file-jump . +ivy--regex-fuzzy))
(add-to-list 'ivy-re-builders-alist '(projectile-find-file . +ivy--regex-fuzzy)))
(add-to-list 'ivy-prescient-excluded-commands 'counsel-find-jump nil #'eq)
(add-to-list 'ivy-prescient-excluded-commands 'projectile-find-file nil #'eq)
(prescient-persist-mode +1)
(ivy-prescient-mode +1))
(add-to-list 'ivy-prescient-excluded-commands 'projectile-find-file nil #'eq))
(def-package! wgrep