Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Works together perfectly with Consult for live previewing definition candidates #431

Open
MagielBruntink opened this issue Mar 20, 2023 · 0 comments

Comments

@MagielBruntink
Copy link

Not a reporting a problem here, just a very nice synergy between this package and Consult. If you set consult-xref to be the show definitions functions, it will live preview your selected definition candidate (ie. show the file and definition location). Very cool!

(use-package dumb-jump
  :ensure t
  :custom
  (dumb-jump-prefer-searcher 'rg)
  ;; (xref-show-definitions-function #'xref-show-definitions-completing-read)
  (xref-show-definitions-function #'consult-xref)

  :config
  (add-hook 'xref-backend-functions #'dumb-jump-xref-activate))
@MagielBruntink MagielBruntink changed the title Works together perfectly with Consult per live previewing definition candidates Works together perfectly with Consult for live previewing definition candidates Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant