From 67ae9447c22360db6511c7dca6603a13f6238726 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Fri, 8 May 2020 04:07:37 -0700 Subject: [PATCH] Update prettier parser (babylon -> babel) --- autoload/codefmt/prettier.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/codefmt/prettier.vim b/autoload/codefmt/prettier.vim index 598ea8a..f310dc3 100644 --- a/autoload/codefmt/prettier.vim +++ b/autoload/codefmt/prettier.vim @@ -68,9 +68,9 @@ function! codefmt#prettier#GetFormatter() abort \ 'prettier_executable') + ['--no-color'] " prettier is able to automatically choose the best parser if the filepath - " is provided. Otherwise, fall back to the previous default: babylon. + " is provided. Otherwise, fall back to the previous default: babel. if @% == "" - call extend(l:cmd, ['--parser', 'babylon']) + call extend(l:cmd, ['--parser', 'babel']) else call extend(l:cmd, ['--stdin-filepath', expand('%:p')]) endif