diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2017-10-07 00:19:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-07 00:19:20 -0700 |
| commit | 0a5622412321aba255bacf4c30081516542fa561 (patch) | |
| tree | 3765d32a40e943014413809144dd2a6295a5326b /ftplugin/typescript.vim | |
| parent | cf42189a0cb348a0d711f475e06cfc3564a54c3b (diff) | |
| parent | 5bca56538ccc4e98038f20eb4284ae44a4b2358e (diff) | |
| download | vim-prettier-0a5622412321aba255bacf4c30081516542fa561.tar.xz | |
Merge pull request #64 from prettier/fixing-race-condition-autoformat-autocmd
bugfix: Fixing auto command params to use extensions instead of magic
Diffstat (limited to 'ftplugin/typescript.vim')
| -rw-r--r-- | ftplugin/typescript.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim index bc2aec7..19d25f0 100644 --- a/ftplugin/typescript.vim +++ b/ftplugin/typescript.vim @@ -1,6 +1,6 @@ augroup Prettier autocmd! if g:prettier#autoformat - autocmd BufWritePre <buffer> call prettier#Autoformat() + autocmd BufWritePre *.ts,*.tsx call prettier#Autoformat() endif augroup end |
