-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support for typescript.tsx format #224
Comments
Are you using tree-sitter or no? If yes, I think easiest way would be to copy the query files. I am not sure how nvim-treesitter works with dotted types so you better check with them. If no, you can copy the ftplugin files. If I have some details I can give more specific instructions. |
I’m old school, I don’t use neovim, but thanks for the pointers on ftplugins, I’ll poke around on it! Thanks! |
I think you should be able to get pretty far with creating a file like this
I use |
Ahh yup, that seems to fix! Is there any possibility to get that filetype supported out of the box though? I know some other plugins support |
I am wary to support two differently named filetypes that are actually referring to the same thing. Is there a key reason you are using typescript.tsx instead of the built in name typescriptreact? Is it just because you want to completely have your own handling? |
The decision was mostly because it felt like the more
So yeah, mostly ideological reasons, so I understand if you prefer not to support it. Maybe one day this is something that can get corrected in the vim codebase |
I maintain my own syntax file for typescript, that uses
typescript.tsx
as the filetype. I've noticed that JSX tag matching does not work with matchup. Is there an easy way to add support for this so it works liketypescriptreact
?The text was updated successfully, but these errors were encountered: