diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2019-01-15 11:24:56 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-15 11:24:56 -0800 |
| commit | 7aedccd15a7da3fc14baa78af2ca536261699342 (patch) | |
| tree | c0433ed3073e69de28a6973fc22ff5773ad20def | |
| parent | f2755ec6fe465fb6af051a254d826018dcde2a50 (diff) | |
| parent | d29b866216cde7c96b66a21c0a3cc35dbbec2c88 (diff) | |
| download | vim-prettier-7aedccd15a7da3fc14baa78af2ca536261699342.tar.xz | |
Merge pull request #169 from rivertam/master
Fix markdown mangling issue
| -rw-r--r-- | ftplugin/html.vim | 10 |
1 files changed, 7 insertions, 3 deletions
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! |
