completion/ivy: add ivy-prescient #774

Better fuzzy support versus flx; hopefully faster. Also brings frecency
sorting to ivy commands.
This commit is contained in:
Henrik Lissner 2018-08-02 01:51:50 +02:00
parent 59bc7653d5
commit baf400b736
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 14 additions and 0 deletions

View file

@ -220,6 +220,19 @@ immediately runs it on the current candidate (ending the ivy session)."
(setf (alist-get fn ivy-display-functions-alist) #'ivy-display-function-fallback)))
(def-package! ivy-prescient
:after ivy
:init
(if (featurep! +fuzzy)
(setq prescient-filter-method 'fuzzy)
(setq prescient-filter-method 'regexp
ivy-prescient-retain-classic-highlighting t))
:config
(setq prescient-save-file (concat doom-cache-dir "presclient-save.el"))
(prescient-persist-mode +1)
(ivy-prescient-mode +1))
;; Used by `counsel-M-x'
(setq amx-save-file (concat doom-cache-dir "amx-items"))