styled-components / vim-styled-components

Vim bundle for http://styled-components.com based javascript files.
300 stars 24 forks source link

Usage with 'typescript.jsx" filetype #43

Closed vjsingh closed 6 years ago

vjsingh commented 6 years ago

I can't get this plugin to work for my TSX files. I'm using this plugin: https://github.com/peitalin/vim-jsx-typescript

which suggests this way of handling filetypes: autocmd BufNewFile,BufRead .tsx,.jsx set filetype=typescript.jsx

If I do ":set filetype=typescript" in my TSX file, then I see the styled-components styling correctly.

I tried for a while but couldn't figure it out. Is there any way to add support for "typescript.jsx" filetype?

fleischie commented 6 years ago

Hi. :thinking: I don't seem to be able to reproduce this.

Can you give me a minimal .vimrc and example file, that illustrate what the problem is? If I change the filetype to typescript.tsx only my JSX styling changes, but the actual styled components highlighting still work.

vjsingh commented 6 years ago

Sorry for the delay on this. It seems to be working now, I'm not really sure what happened. I'll reopen if I can reproduce it in the future. =)