diff options
| author | Vu Tran <vutran@dropbox.com> | 2017-06-29 17:36:03 -0700 |
|---|---|---|
| committer | Vu Tran <vutran@dropbox.com> | 2017-06-29 17:36:10 -0700 |
| commit | 416f20a4cae4e58313c1f68d876b69e00ce69d91 (patch) | |
| tree | 64aad092bc28e8beb54d8da6c61a27c9a77cb226 /ftplugin/graphql.vim | |
| parent | e179f61aad3390af441e2469bb700a9d5ce919bf (diff) | |
| download | vim-prettier-416f20a4cae4e58313c1f68d876b69e00ce69d91.tar.xz | |
add graphql parser + bump for prettier 1.5
Diffstat (limited to 'ftplugin/graphql.vim')
| -rw-r--r-- | ftplugin/graphql.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim new file mode 100644 index 0000000..bfb7b34 --- /dev/null +++ b/ftplugin/graphql.vim @@ -0,0 +1,10 @@ +let b:prettier_ft_default_args = { + \ 'parser': 'graphql' + \ } + +augroup Prettier + autocmd! + if g:prettier#autoformat + autocmd BufWritePre <buffer> call prettier#Autoformat() + endif +augroup end |
