aboutsummaryrefslogtreecommitdiff
path: root/plugin/prettier.vim
diff options
context:
space:
mode:
authorChris LaRose <cjlarose@gmail.com>2020-04-07 11:05:54 -0700
committerChris LaRose <cjlarose@gmail.com>2020-04-07 22:29:42 -0700
commit62ea1dc2110ff760af167633c71a6e469011b9c6 (patch)
tree8af5603b0aacad06a86f2363e7a245f4ad0873a5 /plugin/prettier.vim
parentb016b933523b428c664d7a02a69c9b499c600abb (diff)
downloadvim-prettier-62ea1dc2110ff760af167633c71a6e469011b9c6.tar.xz
Force reevaluation of autoformat settings at buffer write time
Diffstat (limited to 'plugin/prettier.vim')
-rw-r--r--plugin/prettier.vim12
1 files changed, 1 insertions, 11 deletions
diff --git a/plugin/prettier.vim b/plugin/prettier.vim
index 01eb098..f7818dc 100644
--- a/plugin/prettier.vim
+++ b/plugin/prettier.vim
@@ -155,15 +155,5 @@ nnoremap <silent> <Plug>(PrettierCliPath) :PrettierCliPath<CR>
augroup Prettier
autocmd!
- if g:prettier#autoformat_config_present
- if prettier#IsConfigPresent(g:prettier#autoformat_config_files)
- let g:prettier#autoformat = 1
- else
- let g:prettier#autoformat = 0
- endif
- endif
-
- if g:prettier#autoformat
- autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html noautocmd | call prettier#Autoformat()
- endif
+ autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html noautocmd | call prettier#Autoformat()
augroup end