mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -182,6 +182,7 @@ Dictionary.app behind the scenes to get definitions.")
|
|||||||
|
|
||||||
(use-package! consult-xref
|
(use-package! consult-xref
|
||||||
:when (featurep! :completion vertico)
|
:when (featurep! :completion vertico)
|
||||||
|
:defer t
|
||||||
:init
|
:init
|
||||||
(setq xref-show-xrefs-function #'consult-xref
|
(setq xref-show-xrefs-function #'consult-xref
|
||||||
xref-show-definitions-function #'consult-xref)))
|
xref-show-definitions-function #'consult-xref)))
|
||||||
|
Reference in New Issue
Block a user