-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Autoformat on save not working for .ts and .tsx files. #280
Comments
For anyone else experiencing this issue, here is my hacky fix: |
I think you also need to include typescriptreact and javascriptreact in your plug begin. You might need to reinstall vim-prettier to install these missing plugins |
I confirm that adding Was this changed recently? Because I never had those before and Maybe this should be mentioned in the documentation; I was pulling my hair out trying to figure out why it stopped working. |
Worked like a charm. Thank you! |
Maybe we can close this issue then? |
The VSCode integration repo has a helpful list of supported languages. Can we add something similar to vim-prettier's documentation? As it is, it's not obvious at all how to make it work for |
First of all, I really appreciate all the hard-work that went into this amazing plugin, as it has made my life at work tremendously easier.
Issue: Autosave works just fine on
.js
files, but not.ts
and.tsx
files.Here are some of my configurations from my
.vimrc
:Manually calling the command
:Prettier
works just fine, but unfortunately I can't get that to run automatically on save. Any ideas?The text was updated successfully, but these errors were encountered: