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
I added '<*>': {'closer': ‘</*>’, ‘not_if’: [‘br’, …]} to g:pear_tree_pairs to enable auto-close for HTML tags, and it worked fine.
But I noticed, in JSX, there are tags that can take both form <Foo></Foo> and <Foo />, so that I can not simply add Foo to not_if condition.
I thought it would be nice to disable auto-closing when an opener ends with />. But I could not find a way to configure such a condition.
Could you tell me whether there is a way to achieve the above condition?
Anyway, thank you for publishing such a great plugin! I think this is the most sophisticated auto-close plugin.
The text was updated successfully, but these errors were encountered:
I thought some modification is needed to achieve this.
For now, I'm using my forked version and seems to be working fine.
I also made a PR, but I'm not sure if the modification is compatible with your design concept.
So feel free to request me changes.
Hi,
I added
'<*>': {'closer': ‘</*>’, ‘not_if’: [‘br’, …]}
tog:pear_tree_pairs
to enable auto-close for HTML tags, and it worked fine.But I noticed, in JSX, there are tags that can take both form
<Foo></Foo>
and<Foo />
, so that I can not simply addFoo
tonot_if
condition.I thought it would be nice to disable auto-closing when an opener ends with
/>
. But I could not find a way to configure such a condition.Could you tell me whether there is a way to achieve the above condition?
Anyway, thank you for publishing such a great plugin! I think this is the most sophisticated auto-close plugin.
The text was updated successfully, but these errors were encountered: