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

Need for tags table #423

Open
ghost opened this issue Jun 3, 2022 · 1 comment
Open

Need for tags table #423

ghost opened this issue Jun 3, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 3, 2022

I have this setup lines in my init.el:

(dumb-jump-mode)
(setq dumb-jump-selector 'ivy)
(add-to-list 'xref-backend-functions 'dumb-jump-xref-activate t)

Running xref-find-definitions via M-. still asks for the TAGS file to read from. What points am I missing? Do I need to have TAGS files before searching with dumb-jump?

@chasecaleb
Copy link
Contributor

This isn't because of dumb-jump. It's happening because you still have another xref backend (etags, maybe?) in your xref-backend-functions. Keep in mind it could be set as either a global variable or buffer-local. This is what I do:

(remove-hook 'xref-backend-functions #'etags--xref-backend)
(add-hook 'xref-backend-functions #'dumb-jump-xref-activate)

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