install.fairie/dotfiles/.vim/plugged/vim-prettier/ftplugin/html.vim

8 lines
267 B
VimL
Raw Normal View History

" 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