Go to definition
Lesson 15 listed gd among the goto-mode commands with a note that it
needed a language server. Now there is one:
gd— jump to the definition of the symbol under the cursorgr— list every reference to it in a pickergy— jump to its type definition
All three ask the server, and a real one answers across files and across
dependencies; gd on a call from a library takes you into that library’s
source. The stand-in here only knows this buffer, so it finds the fn line
that defines the name.
Every one of these jumps records where you were, so Ctrl-o brings you
back and Ctrl-i takes you forward again — the jumplist from lesson 15
works the same way for jumps a server made.
Below, go from each call in main to the function it calls.