completion/ivy: remove flx #774
flx is much too slow with large lists of candidates (i.e. counsel-projectile-find-file).
This commit is contained in:
parent
a18541851e
commit
59bc7653d5
2 changed files with 10 additions and 17 deletions
|
@ -57,6 +57,16 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
;; enable ability to select prompt (alternative to `ivy-immediate-done')
|
;; enable ability to select prompt (alternative to `ivy-immediate-done')
|
||||||
ivy-use-selectable-prompt t)
|
ivy-use-selectable-prompt t)
|
||||||
|
|
||||||
|
(when (featurep! +fuzzy)
|
||||||
|
(setq ivy-re-builders-alist
|
||||||
|
'((counsel-ag . ivy--regex-plus)
|
||||||
|
(counsel-rg . ivy--regex-plus)
|
||||||
|
(counsel-pt . ivy--regex-plus)
|
||||||
|
(counsel-grep . ivy--regex-plus)
|
||||||
|
(swiper . ivy--regex-plus)
|
||||||
|
(t . ivy--regex-fuzzy))
|
||||||
|
ivy-initial-inputs-alist nil))
|
||||||
|
|
||||||
(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))
|
||||||
|
|
||||||
|
@ -210,20 +220,6 @@ 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! flx
|
|
||||||
:when (featurep! +fuzzy)
|
|
||||||
:defer t ; is loaded by ivy
|
|
||||||
:init
|
|
||||||
(setq ivy-re-builders-alist
|
|
||||||
'((counsel-ag . ivy--regex-plus)
|
|
||||||
(counsel-rg . ivy--regex-plus)
|
|
||||||
(counsel-pt . ivy--regex-plus)
|
|
||||||
(counsel-grep . ivy--regex-plus)
|
|
||||||
(swiper . ivy--regex-plus)
|
|
||||||
(t . ivy--regex-fuzzy))
|
|
||||||
ivy-initial-inputs-alist nil))
|
|
||||||
|
|
||||||
|
|
||||||
;; 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"))
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,5 @@
|
||||||
(package! ivy-rich)
|
(package! ivy-rich)
|
||||||
(package! wgrep)
|
(package! wgrep)
|
||||||
|
|
||||||
(when (featurep! +fuzzy)
|
|
||||||
(package! flx))
|
|
||||||
|
|
||||||
(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