windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.63k stars 87 forks source link

Feat: Add heex support (html + embedded elixir). #76

Closed jadengis closed 1 year ago

jadengis commented 2 years ago

This change adds support for the heex file type that is used for Phoenix Framework templates.

heex is like normal HTML but supports function and module components as well that get parsed into start_component, end_component and component_name nodes.

As a result this changeset adds a new tag set for heex that uses alternations for the start node pattern, end node pattern and name patterns.

This change also fixes a bug in find_parent_match where cur_node was not being reset between matching iterations.

megalithic commented 1 year ago

would LOVE to have this merged.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.