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:
parent
59bc7653d5
commit
baf400b736
2 changed files with 14 additions and 0 deletions
|
@ -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)))
|
(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'
|
;; Used by `counsel-M-x'
|
||||||
(setq amx-save-file (concat doom-cache-dir "amx-items"))
|
(setq amx-save-file (concat doom-cache-dir "amx-items"))
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
(package! ivy-hydra)
|
(package! ivy-hydra)
|
||||||
(package! ivy-rich)
|
(package! ivy-rich)
|
||||||
(package! wgrep)
|
(package! wgrep)
|
||||||
|
(package! ivy-prescient)
|
||||||
|
|
||||||
(when (and EMACS26+ (featurep! +childframe))
|
(when (and EMACS26+ (featurep! +childframe))
|
||||||
(package! ivy-posframe))
|
(package! ivy-posframe))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue