Skip to content

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

@MagielBruntink

Description

@MagielBruntink

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions