Add consult package

This commit is contained in:
Riyyi
2021-03-13 01:44:10 +01:00
parent 801040ffe5
commit 3e43420f56
+13 -4
View File
@@ -232,8 +232,14 @@ Install and configure packages.
(use-package marginalia
:after selectrum
:config
(marginalia-mode)
(setq marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light)))
(setq marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light))
(marginalia-mode))
(use-package consult
:after selectrum
:config
(autoload 'projectile-project-root "projectile")
(setq consult-project-root-function #'projectile-project-root))
(use-package avy
:defer t)
@@ -1786,9 +1792,12 @@ General.el ~leader key binds.
;; Search
"s" '(:ignore t :which-key "search")
"s a" '(avy-goto-char-timer :which-key "Avy goto char")
"s b" '(bookmark-jump :which-key "Jump to bookmark")
"s b" '(consult-line :which-key "Search buffer")
"s f" '(consult-find :which-key "Search file")
"s l" '(avy-goto-line :which-key "Avy goto line")
"s s" '(evil-ex-nohighlight :which-key "Stop search")
"s m" '(bookmark-jump :which-key "Jump to bookmark")
"s p" '(consult-grep :which-key "Search project")
"s q" '(evil-ex-nohighlight :which-key "Stop search")
;; Tabs / toggle
"t" '(:ignore t :which-key "tabs/toggle")