From d29b866216cde7c96b66a21c0a3cc35dbbec2c88 Mon Sep 17 00:00:00 2001 From: Ben Berman Date: Wed, 9 Jan 2019 16:47:04 -0500 Subject: Fix markdown mangling issue --- ftplugin/html.vim | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ftplugin/html.vim') diff --git a/ftplugin/html.vim b/ftplugin/html.vim index e34931a..39a608f 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -1,6 +1,10 @@ -let b:prettier_ft_default_args = { - \ 'parser': 'html', - \ } +" markdown files run this as well +" https://stackoverflow.com/questions/22839269/why-does-vim-default-markdown-ftplugin-source-html-ftplugins-is-there-any-ways +if &ft !=# 'markdown' + let b:prettier_ft_default_args = { + \ 'parser': 'html', + \ } +endif augroup Prettier autocmd! -- cgit v1.3