zed icon indicating copy to clipboard operation
zed copied to clipboard

Emmet support in xhtml, tsx, jsx, vue, & svelte

Open versecafe opened this issue 1 year ago • 4 comments

Check for existing issues

  • [X] Completed

Describe the feature

Add optional configuration to the emmet extension to enable support for HTML/XML embedded languages, most web developers are writing inside of one of these so having the zed emmet extension limited to just explicitly HTML files is restrictive, implement a system similar to

https://code.visualstudio.com/docs/editor/emmet#_emmet-abbreviations-in-other-file-types

with whichever system was chosen for settings for extensions haven't checked in on that in a few weeks.

also xhtml can be ignored but is likely the easiest as it can just work identically to the default html setup

If applicable, add mockups / screenshots to help present your vision of the feature

No response

versecafe avatar Apr 16 '24 20:04 versecafe

Don‘t forget ERB as well pls 🙃

drale2k avatar Apr 17 '24 11:04 drale2k

also as configs for extensions become stable it would be nice to be able to map the emmet completion key off tab or to map copilot off it since they overlap and it causes some odd behaviour

versecafe avatar Apr 17 '24 17:04 versecafe

https://github.com/zed-industries/zed/pull/10779 Improves some of this. I may be able to add Svete and Vue (need to check something first though). XML doesn't seem supported.

olrtg avatar Apr 20 '24 10:04 olrtg

For Astro, Svelte and Vue, their language servers already should provide emmet completions so you should have already support for them (with the extensions of course). Although, from my tests only Svelte and Vue are providing completions, for some reason Astro doesn't seem to be working (or at least the language server doesn't get attached to the buffer).

olrtg avatar Apr 20 '24 11:04 olrtg

Hey thanks much for this feature, I am wondering how can I start using the emmet support on tsx files ? I checked the emmet extension version and is still on v0.0.2 from April

3stbn avatar May 15 '24 18:05 3stbn

Hey, I'm gonna cut a new 0.0.3 release for emmet extension in #11873

osiewicz avatar May 15 '24 19:05 osiewicz

Aand it's out.

osiewicz avatar May 15 '24 22:05 osiewicz