diff options
author | Guangxiong Lin <[email protected]> | 2022-03-16 00:49:33 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-16 00:49:33 +0800 |
commit | f8d7c5796a73510b3d26596dcc0f00e213b93784 (patch) | |
tree | 2a723e278588244921b1b8718f6f6ee29ac7c717 /.emacs.d | |
parent | 77d4aa352070926699f8f2f5990753a8820e790f (diff) | |
download | dotfiles-f8d7c5796a73510b3d26596dcc0f00e213b93784.tar.gz dotfiles-f8d7c5796a73510b3d26596dcc0f00e213b93784.tar.bz2 dotfiles-f8d7c5796a73510b3d26596dcc0f00e213b93784.zip |
Improve ivy match (emacs)
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/lisp/init-ivy.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-ivy.el b/.emacs.d/lisp/init-ivy.el index db59481..8b944ac 100644 --- a/.emacs.d/lisp/init-ivy.el +++ b/.emacs.d/lisp/init-ivy.el @@ -1,6 +1,8 @@ (when (gx/maybe-require-package 'counsel) (add-hook 'after-init-hook (lambda () (ivy-mode 1)))) +(gx/maybe-require-package 'flx) + (with-eval-after-load 'ivy (gx/diminish 'ivy-mode)) @@ -13,8 +15,9 @@ (setq ivy-use-virtual-buffers t) (setq ivy-count-format "(%d/%d) ") +(setq ivy-initial-inputs-alist nil) (setq ivy-re-builders-alist - '((read-file-name-internal . ivy--regex-fuzzy) - (t . ivy--regex-plus))) + '((ivy-switch-buffer . ivy--regex-plus) + (t . ivy--regex-fuzzy))) (provide 'init-ivy) |