diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2019-09-14 05:21:20 +0000 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2019-09-14 05:21:20 +0000 |
| commit | c73822ba57d432cfc073c6e3d485c0df97cd56ea (patch) | |
| tree | cfd6a3d165c7958a37211c14dfc40b97a723f74c | |
| parent | 87f217f953b64103e8bef48980c0f002aa0f00c7 (diff) | |
| download | vim-prettier-c73822ba57d432cfc073c6e3d485c0df97cd56ea.tar.xz | |
issues/184-fixing-undo-step - Ensuring that autoformat does not gets
trigger autoformat
| -rw-r--r-- | plugin/prettier.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/prettier.vim b/plugin/prettier.vim index aafa7a2..928630b 100644 --- a/plugin/prettier.vim +++ b/plugin/prettier.vim @@ -140,6 +140,6 @@ nnoremap <silent> <Plug>(PrettierCliPath) :PrettierCliPath<CR> augroup Prettier autocmd! if g:prettier#autoformat - autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html call prettier#Autoformat() + autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html noautocmd | call prettier#Autoformat() endif augroup end |
