tcomment_vim icon indicating copy to clipboard operation
tcomment_vim copied to clipboard

React doc comment not working

Open himat opened this issue 3 years ago • 3 comments

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 tcomment or something else?

himat avatar Dec 30 '20 03:12 himat

This isn't handled by tcomment. IIRC there is some way in &comments to make vim act like that. You might want to check if the definitions of 'comments' differ for these filetypes.

tomtom avatar Dec 30 '20 08:12 tomtom

What is '&comments'? and where do I check the definitions of 'comments' for the filetypes?

himat avatar Dec 30 '20 19:12 himat

:help 'comments' :help format-comments

HTH

tomtom avatar Dec 30 '20 20:12 tomtom