Commit 4aa951089b7f

Vincent Demeester <vincent@sbr.pm>
2024-05-07 16:40:35
tools/emacs: use consult-xref for xref
Because it's better ๐Ÿ™ƒ Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 36a2822
Changed files (1)
tools
tools/emacs/config/config-completion.el
@@ -18,6 +18,11 @@
   ("M-s M-y" . consult-yank-pop)
   ("M-s M-s" . consult-outline))
 
+(use-package consult-xref
+  :config
+  (setq xref-show-xrefs-function #'consult-xref
+        xref-show-definitions-function #'consult-xref))
+
 ;; https://github.com/oantolin/embark/blob/master/embark-consult.el
 (use-package embark
   :unless noninteractive