aboutsummaryrefslogtreecommitdiff
path: root/ftplugin/html.vim
blob: 0134d333271235b360e9da35c59aa77abd697628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
" markdown/php files run this as well
" https://stackoverflow.com/questions/22839269/why-does-vim-default-markdown-ftplugin-source-html-ftplugins-is-there-any-ways
if expand('%:e') ==# 'html'
  let b:prettier_ft_default_args = {
    \ 'parser': 'html',
    \ }
endif

augroup Prettier
  autocmd!
  autocmd BufWritePre *.html call prettier#Autoformat()
augroup end