Remove ivy-prescient
Doesn't bring enough to the table, slows down fuzzy searches too much, and alters the way ivy highlights.
This commit is contained in:
parent
41a641f53b
commit
e916a4d6fe
2 changed files with 0 additions and 24 deletions
|
@ -65,9 +65,6 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
(t . ivy--regex-fuzzy))
|
(t . ivy--regex-fuzzy))
|
||||||
ivy-initial-inputs-alist nil))
|
ivy-initial-inputs-alist nil))
|
||||||
|
|
||||||
;; make projectile-find-file faster
|
|
||||||
(add-to-list 'ivy-sort-functions-alist '(projectile-find-file))
|
|
||||||
|
|
||||||
(after! yasnippet
|
(after! yasnippet
|
||||||
(add-to-list 'yas-prompt-functions #'+ivy-yas-prompt nil #'eq))
|
(add-to-list 'yas-prompt-functions #'+ivy-yas-prompt nil #'eq))
|
||||||
|
|
||||||
|
@ -175,26 +172,6 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
(ivy-set-display-transformer #'counsel-projectile-find-file nil))
|
(ivy-set-display-transformer #'counsel-projectile-find-file nil))
|
||||||
|
|
||||||
|
|
||||||
(def-package! ivy-prescient
|
|
||||||
:hook (ivy-mode . ivy-prescient-mode)
|
|
||||||
: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' is too slow for fuzzy projectile-find-file and
|
|
||||||
;; counsel-file-jump, so ensure they're ignored
|
|
||||||
(when (featurep! +fuzzy)
|
|
||||||
(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))
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! wgrep
|
(def-package! wgrep
|
||||||
:commands wgrep-change-to-wgrep-mode
|
:commands wgrep-change-to-wgrep-mode
|
||||||
:config (setq wgrep-auto-save-buffer t))
|
:config (setq wgrep-auto-save-buffer t))
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
(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