Skip to content

Commit

Permalink
Fix for 'Failed to parse buffer' error in Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohel Sheikh committed Nov 22, 2020
1 parent 5afe21c commit 2a3e117
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ let g:go_fmt_command = "goimports"
" ====== variables for vim go ======

" ====== prettier settings ======
let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0
autocmd InsertLeave *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync
let g:prettier#config#single_quote = 'true'
let g:prettier#config#trailing_comma = 'all'
au InsertLeave *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync
" ====== prettier settings ======

" ====== commands ======
Expand Down

0 comments on commit 2a3e117

Please sign in to comment.