diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2018-11-07 10:12:43 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-07 10:12:43 -0800 |
| commit | 1541cf9ff54841e73292a9013e82f99835877b54 (patch) | |
| tree | 50441c2e4f7541280f8056c567a738d00590a26b /ftplugin/html.vim | |
| parent | a075107c2accabb3694d56ab24b9061d7b50287c (diff) | |
| parent | 6b5dd4c32ca5176c59b756746f1d023016115c06 (diff) | |
| download | vim-prettier-1541cf9ff54841e73292a9013e82f99835877b54.tar.xz | |
Merge pull request #159 from premithk/master
Added html support using the latest prettier 1.15 version
Diffstat (limited to 'ftplugin/html.vim')
| -rw-r--r-- | ftplugin/html.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ftplugin/html.vim b/ftplugin/html.vim new file mode 100644 index 0000000..e34931a --- /dev/null +++ b/ftplugin/html.vim @@ -0,0 +1,10 @@ +let b:prettier_ft_default_args = { + \ 'parser': 'html', + \ } + +augroup Prettier + autocmd! + if g:prettier#autoformat + autocmd BufWritePre *.html call prettier#Autoformat() + endif +augroup end |
