diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2017-06-29 17:49:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-29 17:49:11 -0700 |
| commit | 88458c298968d26fa7d2bc92541aaf9ccfae7a2f (patch) | |
| tree | fd6f82b1d89689e3df0a7c1fa93fe8ab21a80eb3 /ftplugin/graphql.vim | |
| parent | bf82f3b2c155d36aa9b13f293f8844258bcc4724 (diff) | |
| parent | 8f53ba1f9e7d52fb1fb855d7944a792a9371b104 (diff) | |
| download | vim-prettier-0.0.8.tar.xz | |
Merge pull request #17 from vutran/add-json-parser0.0.8
Add JSON/GraphQL parser (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 |
