Minor refactors across the board

This commit is contained in:
Henrik Lissner 2019-07-10 21:27:12 +02:00
parent ead07dea83
commit a201409fdd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 7 additions and 14 deletions

View file

@ -271,10 +271,10 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
:hook (ivy-mode . ivy-posframe-mode)
:config
(setq ivy-fixed-height-minibuffer nil
ivy-posframe-border-width 10
ivy-posframe-parameters
`((min-width . 90)
(min-height . ,ivy-height)
(internal-border-width . 10)))
(min-height . ,ivy-height)))
;; default to posframe display function
(setf (alist-get t ivy-posframe-display-functions-alist) #'+ivy-display-at-frame-center-near-bottom)
@ -289,14 +289,8 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
(not (featurep! +prescient)))
:defer t ; is loaded by ivy
:init
(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)
(t . ivy--regex-fuzzy))
ivy-initial-inputs-alist nil
(setf (alist-get 't ivy-re-builders-alist) #'ivy--regex-fuzzy)
(setq ivy-initial-inputs-alist nil
ivy-flx-limit 10000))