Add more consult functionality
This commit is contained in:
parent
918b9358df
commit
368caf9bae
@ -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)
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user