-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Jump to Elixir source definition #772
Comments
Correct. I’m actually not sure why erlang works but elixir doesn’t, but we don’t index the elixir source. I’ll investigate soon |
For elixir-ls (another LSP for elixir), the solution to this problem is to install elixir from source, i.e., to use a self-compiled elixir version. elixir-ls uses a launcher script called
This allowed me to use Go To Definition etc. from neovim via elixir-ls. Perhaps this solution for elixir-ls applies to this issue for lexical, too? |
hi @miguno, thanks for the suggestion. I've just tried it locally, prepending to [jsonrpc] e[10:56:30.052] --> textDocument/definition[26] {"jsonrpc":"2.0","id":26,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///.../application.ex"},"position":{"line":14,"character":25}}}
[jsonrpc] e[10:56:30.086] <-- textDocument/definition[26] {"id":26,"result":null,"jsonrpc":"2.0"} |
Hey, thanks for all the amazing work with lexical.
Jumping to erlang core code (e.g.
:timer.minutes(5)
) is working great, getting to asdf erlang source.I can't jump to elixir core code though (e.g.
Supervisor.init(...)
) (elixir 1.16.3, erlang 26.2.5, eglot).I imagine it's not an issue, it's just not implemented yet, right?
It would be so great to have this.
Cheers!
The text was updated successfully, but these errors were encountered: