Skip to content
Snippets Groups Projects
Commit 6db7c25f authored by Liu Miao's avatar Liu Miao
Browse files

use consult for search

parent 71f19b4b
No related branches found
No related tags found
No related merge requests found
......@@ -62,9 +62,6 @@
completion-category-defaults nil
completion-category-overrides '((file (styles partial-completion)))))
(use-package consult
:ensure t)
(use-package vertico
:ensure t
:init
......@@ -107,6 +104,22 @@ If prefix ARG is set, include ignored/hidden files."
(use-package consult
:defer t
:preface
(define-key!
[remap apropos] #'consult-apropos
[remap bookmark-jump] #'consult-bookmark
[remap evil-show-marks] #'consult-mark
[remap evil-show-registers] #'consult-register
[remap evil-show-jumps] #'consult-xref
[remap goto-line] #'consult-goto-line
[remap imenu] #'consult-imenu
[remap locate] #'consult-locate
[remap load-theme] #'consult-theme
[remap man] #'consult-man
[remap recentf-open-files] #'consult-recent-file
[remap switch-to-buffer] #'consult-buffer
[remap switch-to-buffer-other-window] #'consult-buffer-other-window
[remap switch-to-buffer-other-frame] #'consult-buffer-other-frame
[remap yank-pop] #'consult-yank-pop)
(advice-add #'multi-occur :override #'consult-multi-occur)
:config
(setq consult-line-numbers-widen t
......
......@@ -116,7 +116,7 @@
"pp" 'projectile-switch-project
;; Searching
"si" 'imenu
"sp" 'keybinds/counsel-search-project
"sp" #'consult-ripgrep
"sP" 'keybinds/counsel-search-project-at-point
"sd" 'keybinds/counsel-search-dir
"sD" 'keybinds/counsel-search-dir-at-point
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment