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

How does one jump to definition? #301

Closed
mimoo opened this issue Oct 26, 2022 · 3 comments
Closed

How does one jump to definition? #301

mimoo opened this issue Oct 26, 2022 · 3 comments

Comments

@mimoo
Copy link

mimoo commented Oct 26, 2022

I followed the installation instructions but it is not clear from the README how one should use this plugin. How do I jump to definition, for example?

@mimoo
Copy link
Author

mimoo commented Oct 26, 2022

I've found some stackoverflow answer saying that C-c C-l should work, but I'm getting this error:

No annotation file. Compile with option "-annot" or set ‘caml-annot-dir’.

@bbatsov
Copy link
Contributor

bbatsov commented Dec 11, 2022

@mimoo It's best to install Merlin alongside Tuareg (or lsp-mode/elgot which use Merlin internally for OCaml) and leverage it for the definition lookup. See https://ocaml.github.io/merlin/ for details.

@mimoo
Copy link
Author

mimoo commented Dec 12, 2022

yes I was missing merlin!

@mimoo mimoo closed this as completed Dec 12, 2022
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

2 participants