LSP go to definition for standard library code

Hi all, I am writing Elixir using Zed. Often times I like to “Go to definition” on standard libraries code and check out documentation and implementation comfortably from my editor. For example checking the code and docs of the Agent module. I can see the documentation from hovering, but I want to reach the actual code.

I can’t do this using Elixir’s lsps though. Is there something I need to configure?
I installed Elixir using brew and tried elixir-ls and expert.

I know I can find this code in my system and open it with Zed. But it’s much quicker to go there from the code I am writing.

2 Likes

Elixir is often installed precompiled, so you do not have sources on your machine at all. Afaik LSPs have means of providing sources out of band or you could look into options of compiling elixir from source.

2 Likes

Thanks! I compiled elixir from source and it works just fine!

1 Like