From e889eaf97699833e88713696a2ea520217b58f84 Mon Sep 17 00:00:00 2001 From: mitermayer Date: Mon, 5 Nov 2018 13:17:20 -0800 Subject: 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 --- ftplugin/php.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ftplugin/php.vim (limited to 'ftplugin/php.vim') 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 -- cgit v1.3