You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LSP textDocument/definition support for HEEX ~H sigils #74
I'd like to be able to Go-to Definition on function components and expressions within Phoenix LiveView HEEX templates. For example, in the following LiveView, I'd like to be able to goto the definition of foo, Foo.bar, Baz, and class() from within the sigil's contents.
<Foo.bar> and <.foo> desugar to simple function calls, and HEEX expression interpolation (within {}) is just direct Elixir code that can be parsed with the existing parser.
Why?
When working within a Phoenix LiveView application, you spend as much time working within the render function as outside. Render functions are often composed of many other smaller function components and live components, and it improves navigation drastically when you can jump between them directly, without having to resort to Ctrl+F or jumping to the top of the page first to find the corresponding alias.
Alternatives considered
Navigating via the editor's built-in Find and Project Search work OK, as does */#-style Vim motions (find next/prev occurrence). Jumping to the top of the file and using go-to definition on the alias also works.
Reacted by jk-lamb, Dan, Søren Siersted Mikkelsen and Ahmed Elawad
Activity
jk-lamb commentedon Jul 2, 2026
I second this request!