-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autorename on .tsx files does not work #71
Comments
it's working fine for me. |
The configs where not much different from mine. However I have previously not used So as I have found out:
Is there a way to make the counterpart element update while typing within the element? The way pretty much any IDE does it? |
you can use nvim-autopairs plugin for such task
require('nvim-autopairs').add_rules {
Rule("%<%>$", "</>", { 'typescript', 'typescriptreact', 'javascript', 'javascriptreact' })
:use_regex(true),
} |
Thanks, that fixes the empty tsx element issue, but still the behavior is lacking in other aspects. |
i am not trying to convince you but using |
You should install this too Duplicate from #66 |
Yes sure, it is installed |
That fixed for me, at least autoclosing jsx tags |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello, Typing
<div
and then>
will result<div></div>
It works fine, but when renaming the field it doesn not work. When typingciwspan<Esc>
within the<div>
does not result<span></span>
but results only<span></div>
.Also when closing single type with slash
/
it does not add>
the the end. Expected behaviour when typing<div
and then/
the close tag>
should be automatically appended.Also has noted here alvan/vim-closetag#76 When editing
tsx
orjsx
and using jsx and tsx react elements with<></>
it does not automatically end or rename the tag either. When typed<
and then closed with>
it will not automatically add</>
end tag.The text was updated successfully, but these errors were encountered: