React doc comment not working
himat opened this issue · comments
Hima commented
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?
Tom Link commented
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.
Hima commented
What is '&comments'? and where do I check the definitions of 'comments' for the filetypes?
Tom Link commented
:help 'comments'
:help format-comments
HTH