From 62ea1dc2110ff760af167633c71a6e469011b9c6 Mon Sep 17 00:00:00 2001 From: Chris LaRose Date: Tue, 7 Apr 2020 11:05:54 -0700 Subject: Force reevaluation of autoformat settings at buffer write time --- plugin/prettier.vim | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'plugin/prettier.vim') 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 (PrettierCliPath) :PrettierCliPath 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 -- cgit v1.3