perf(lookup): defer consult-xref

`consult-xref` is autoloaded anyway. There are some packages that
require `xref` (such as lispy through requiring etags) so without
deferring, loading those packages may cause `consult.el` to be loaded.
This commit is contained in:
Daanturo 2022-04-03 15:38:26 +07:00 committed by Henrik Lissner
parent d7ad4daf32
commit 7ada538991

View file

@ -182,6 +182,7 @@ Dictionary.app behind the scenes to get definitions.")
(use-package! consult-xref
:when (featurep! :completion vertico)
:defer t
:init
(setq xref-show-xrefs-function #'consult-xref
xref-show-definitions-function #'consult-xref)))