From 7ada5389918f55ea7f2c8761513dfb63416bbf63 Mon Sep 17 00:00:00 2001 From: Daanturo Date: Sun, 3 Apr 2022 15:38:26 +0700 Subject: [PATCH] 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. --- modules/tools/lookup/config.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/tools/lookup/config.el b/modules/tools/lookup/config.el index cb795022d..0449bee7c 100644 --- a/modules/tools/lookup/config.el +++ b/modules/tools/lookup/config.el @@ -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)))