I have a GenServer with an API function:
def api_exit do
GenServer.cast(@proc_name, :exit)
end
And a matching handler:
def handle_cast(:exit, state) do
# some logic here
{:noreply, newstate}
end
Running in Neovim, ElixirLS beautifully navigates to the API function.
But I don’t know of a way to auto-navigate to the handler. Is this even possible with LSP? Are there tricks or best practices to quickly jump to a particular handler?
PS I put a unique prefix on every request term (eg :exit → :msg_exit) in the API and handlers. With that, Neovim # and * keys will quickly pop between matching functions. Still curious if there is an LSP way to jump to a handler signature, or other tricks that people may have…






















