-
Notifications
You must be signed in to change notification settings - Fork 15
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
"Visit tags table" prompt on jumping to definition? #11
Comments
First try using AST of the (defun my-js-jump-to-definition ()
"Jump to a definition."
(interactive)
;; (tern-find-definition)
(condition-case-unless-debug nil
(js2-jump-to-definition)
(error
(xref-pop-marker-stack)
(xref-find-definitions (xref-backend-identifier-at-point (xref-find-backend))))))
(define-key js2-mode-map (kbd "M-.") #'my-js-jump-to-definition)
(add-hook 'xref-backend-functions #'xref-js2-xref-backend nil t) |
You should set the xref backend in js2 buffers:
|
@dbarros are you using js2 and Emacs >= 25.1? |
@NicolasPetton Yes, I have js2 and Emacs 25.2 |
Diego Barros <notifications@github.com> writes:
@NicolasPetton Yes, I have js2 and Emacs 25.2
Ok, and have you setup xref-js2 as described in the README?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I press the bound
M-.
to jump to a definition, I am prompted with:I've double-checked the installation requirements, but am not able to avoid this prompt. Is there something you can recommend I try?
The text was updated successfully, but these errors were encountered: