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

8 lines
265 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') ==# 'xml'
let b:prettier_ft_default_args = {
\ 'parser': 'xml',
\ }
endif