Skip to content

Commit

Permalink
emacs give swiper a try
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek committed Aug 5, 2023
1 parent 398b3c1 commit 3b9328e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ default lsp-passthrough."
'(;;(counsel-find-file . ivy--regex-plus)
(counsel-rg . my/ivy-regex)
(counsel-git-grep . my/ivy-regex)
(swiper-isearch . my/ivy-regex)
(t . ivy--regex-fuzzy)))
;; (setq ivy-initial-inputs-alist
;; `((counsel-find-file . "^")
Expand All @@ -667,6 +668,14 @@ default lsp-passthrough."
(setq ivy-extra-directories nil) ;Default value: ("../" "./")
)

(use-package swiper
:bind (("C-s" . swiper-isearch)
("C-r" . swiper-isearch-backward)
:map swiper-map
("M-s" . swiper-isearch-toggle)
:map isearch-mode-map
("M-s" . swiper-isearch-toggle)))

(use-package ivy-hydra
:defer t)

Expand Down

0 comments on commit 3b9328e

Please sign in to comment.