From a51c03900bf5e18c6649662e34d802c60f229cb0 Mon Sep 17 00:00:00 2001 From: Sebastian Sturm Date: Tue, 27 Apr 2021 22:39:36 +0200 Subject: [PATCH] Set up consult-xref if selectrum is enabled --- modules/completion/selectrum/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/completion/selectrum/config.el b/modules/completion/selectrum/config.el index 626a91952..ded4d573d 100644 --- a/modules/completion/selectrum/config.el +++ b/modules/completion/selectrum/config.el @@ -80,6 +80,12 @@ (setq consult-async-input-debounce 0.5) (setq consult-async-input-throttle 0.8)) +(use-package! consult-xref + :defer t + :init + (setq xref-show-xrefs-function #'consult-xref + xref-show-definitions-function #'consult-xref)) + (use-package! consult-flycheck :when (featurep! :checkers syntax) :after (consult flycheck))