peitalin / vim-jsx-typescript

React JSX syntax highlighting for vim and Typescript
The Unlicense
305 stars 29 forks source link

React doc comment not working #37

Open himat opened 3 years ago

himat commented 3 years ago

Doc comments don't seem to work in a typescript react file.

In a .ts file:

/** <I type this, and press enter and the '*' is auto inserted on the next line - good>
 *

In a .tsx file:

/** <I type this, and press enter and nothing is inserted on the next line - bad>

Is this a problem with this plugin or something else?

zacharytyhacz commented 3 years ago

I write comments in jsx/tsx like:

<h1>Hello World</h1>
{ /* this is a comment */ }
<h2>Typescript is still cool</h2>