Last active
August 4, 2017 13:08
-
-
Save reyhansofian/bba5d7711c0fa5d75cd45397593ade53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:neoformat_javascript_prettier = { | |
\ 'exe': 'prettier', | |
\ 'args': ['--single-quote'], | |
\ 'replace': 0, | |
\ 'stdin': 1, | |
\ 'no_append': 1 | |
\ } | |
let g:neoformat_enabled_javascript = ['prettier'] | |
autocmd FileType javascript set formatprg=prettier\ --stdin | |
autocmd BufWritePre *.js :Neoformat prettier |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment