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)))
|
||||
|
||||
|
||||
(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"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue