cmp-tw2css icon indicating copy to clipboard operation
cmp-tw2css copied to clipboard

Trying to use inside ts/js files.

Open EuCaue opened this issue 2 years ago • 2 comments

Hey, I'm trying to modify this plugin for my personal use, for work with styled, I've already changed for work in typescript files, but I don't know where I need to change, to stop recognizes only inside CSS elements, like body {}, it's possible to do that?

If you can help me with that, if not, it's okay! :)

EuCaue avatar Jan 13 '23 21:01 EuCaue

Hi!

I don't use styled-components for myself, but I think it would be nice to support it as well. I guess I need to figure out how tree-sitter works with styled-components in JS/TS, then I'll try to modify it accordingly. In the meantime, let me know if you have any other ideas or suggestions. Thanks :)

jcha0713 avatar Jan 14 '23 03:01 jcha0713

Hi! :) Yeah, for sure tree-sitter it's the answer for that. I wish I know how tree-sitter works, I'm going to try to learn in the next days. Thanks for the reply! 😁

EuCaue avatar Jan 14 '23 12:01 EuCaue