tcomment_vim
tcomment_vim copied to clipboard
React doc comment not working
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?
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.
What is '&comments'? and where do I check the definitions of 'comments' for the filetypes?
:help 'comments' :help format-comments
HTH