mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.41k stars 411 forks source link

Is it possible to make attributes into JSX props? #449

Closed faurehu closed 5 years ago

faurehu commented 5 years ago

This has been done for Atom [1] but I'd like to have it in vim too.

I would like to write something like:

MyComp[prop=myFunction title="title" number=42]

and have it become:

<MyComp prop={myFunction} title="title" number={42}/>

I wonder if this is possible with any customisation of the current release or this would require some sort of update from the plugin code.

Many thanks.

[1] https://github.com/iJigg/emmet-jsx-props

mattn commented 5 years ago

This is same behavior on official emmet.

https://docs.emmet.io/