summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2019-09-14 05:21:20 +0000
committermitermayer <mitermayer.reis@gmail.com>2019-09-14 05:21:20 +0000
commitc73822ba57d432cfc073c6e3d485c0df97cd56ea (patch)
treecfd6a3d165c7958a37211c14dfc40b97a723f74c /plugin
parent87f217f953b64103e8bef48980c0f002aa0f00c7 (diff)
downloadvim-prettier-c73822ba57d432cfc073c6e3d485c0df97cd56ea.tar.xz
issues/184-fixing-undo-step - Ensuring that autoformat does not gets
trigger autoformat
Diffstat (limited to 'plugin')
-rw-r--r--plugin/prettier.vim2
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