diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2018-11-05 13:17:20 -0800 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2018-11-05 14:28:33 -0800 |
| commit | e889eaf97699833e88713696a2ea520217b58f84 (patch) | |
| tree | 1bee30a930166d2a97fc8203a51e340d3364fa34 /ftplugin/php.vim | |
| parent | f84a45f6f1332db9f7a0579214e76c207508f987 (diff) | |
| download | vim-prettier-e889eaf97699833e88713696a2ea520217b58f84.tar.xz | |
Rebasing vim-prettier plugin Pull Request 120 to 1.0 branch
This is a rebase of https://github.com/prettier/vim-prettier/pull/120/files
Diffstat (limited to 'ftplugin/php.vim')
| -rw-r--r-- | ftplugin/php.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ftplugin/php.vim b/ftplugin/php.vim new file mode 100644 index 0000000..92e3fc2 --- /dev/null +++ b/ftplugin/php.vim @@ -0,0 +1,10 @@ +let b:prettier_ft_default_args = { + \ 'parser': 'php', + \ } + +augroup Prettier + autocmd! + if g:prettier#autoformat + autocmd BufWritePre *.php call prettier#Autoformat() + endif +augroup end |
