diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2020-02-13 11:17:38 +0000 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2020-02-13 11:17:38 +0000 |
| commit | e5824806aef1edb462faf1dc540b6538ba3acb0e (patch) | |
| tree | 4c8d0fbbf93f66eae2c561c96be260f07e633160 /ftplugin/php.vim | |
| parent | bf17b2dd12c173c981bcdb72ecab0b2ad712bf59 (diff) | |
| download | vim-prettier-e5824806aef1edb462faf1dc540b6538ba3acb0e.tar.xz | |
Adding support for the php pluggin
- This adds support for the PHP prettier plugin
- Fixes a bug where html overwrites php files parsers
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..8413ded --- /dev/null +++ b/ftplugin/php.vim @@ -0,0 +1,10 @@ +let b:prettier_ft_default_args = { + \ 'parser': 'php', + \ } + +augroup Prettier + autocmd! + if get(g:, 'prettier#autoformat') + autocmd BufWritePre *.php call prettier#Autoformat() + endif +augroup end |
