fvictorio / vim-extract-variable

Vim plugin to extract an expression to a variable
MIT License
26 stars 6 forks source link

Typescript support #7

Open mrded opened 4 years ago

mrded commented 4 years ago

Can you please add a TS support? thanks

fvictorio commented 4 years ago

Hi @mrded, can you upgrade and check now?

mrded commented 4 years ago

I'm still getting following error:

Screenshot 2019-11-14 at 15 02 16

I just realized, it's not just typescript, it's react JSX format *.tsx.

fvictorio commented 4 years ago

@mrded Can you tell me the output of :set filetype? in your file? I think it should work in tsx files.

mrded commented 4 years ago

filetype=typescriptreact

fvictorio commented 4 years ago

Wow, that's weird. Normally you have something like typescript.tsx. But I guess it can be included as typescript, it shouldn't break anything.