Add more consult functionality

This commit is contained in:
Jeremy Dormitzer 2021-02-24 16:51:11 -05:00
parent 918b9358df
commit 368caf9bae
2 changed files with 12 additions and 0 deletions

View File

@ -63,9 +63,20 @@
;; Consult adds a bunch of completing-read based utilities
(use-package consult
:commands (consult-xref)
:init
(setq xref-show-xrefs-function #'consult-xref
xref-show-definitions-function #'consult-xref)
:custom
(consult-project-root-function #'projectile-project-root)
:general
([remap switch-to-buffer] #'consult-buffer)
([remap imenu] #'consult-imenu)
("C-c p" #'consult-yank))
(use-package consult-flycheck
:after flycheck
:general
(flycheck-command-map "!" #'consult-flycheck))
(provide 'init-completion)

View File

@ -2,6 +2,7 @@
;; Project management
(use-package projectile
:commands (projectile-project-root)
:config
(projectile-mode 1)
(leader-def-key "p" '(projectile-command-map :which-key "projectile"))