completion/ivy: don't ignore order in file search

This commit is contained in:
Henrik Lissner 2019-07-02 13:12:04 +02:00
parent 275f499ce9
commit 9a8faf1df3
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -47,8 +47,14 @@ immediately runs it on the current candidate (ending the ivy session)."
:defer 1
:after-call pre-command-hook
:init
;; Ignore order for non-fuzzy searches by default
(setq ivy-re-builders-alist '((t . ivy--regex-ignore-order)))
(setq ivy-re-builders-alist
'((counsel-ag . ivy--regex-plus)
(counsel-rg . ivy--regex-plus)
(counsel-grep . ivy--regex-plus)
(swiper . ivy--regex-plus)
(swiper-isearch . ivy--regex-plus)
;; Ignore order for non-fuzzy searches by default
(t . ivy--regex-ignore-order)))
:config
(setq ivy-height 15
ivy-wrap t