Skip to content

Instantly share code, notes, and snippets.

@kaosf
Last active June 5, 2020 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaosf/8480d59f8e760ac2f7f4c5c9f3154a75 to your computer and use it in GitHub Desktop.
Save kaosf/8480d59f8e760ac2f7f4c5c9f3154a75 to your computer and use it in GitHub Desktop.
Vim vim-prettier default arrow-parens trailing-comma different

Change some options for :Prettier, :PrettierAsync commands on Vim to be same to the normal yarn prettier file.js --write command's or VSCode plugin of prettier-vscode's prettier result.

Add the following configurations to your .vimrc.

let g:prettier#config#arrow_parens = 'always'
let g:prettier#config#trailing_comma = 'es5'

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment