diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2019-02-06 14:08:29 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-06 14:08:29 -0800 |
| commit | dc8266d19d7dbe6c9196dec814d8426df3010555 (patch) | |
| tree | 376b63d84864355a24d8453a7d7ba677bd5d2fc6 /ftplugin/html.vim | |
| parent | 14d3be088c95e70a41ef69ec4cd65ff4ab32503d (diff) | |
| parent | 491922d557a94b6436ff7737f024c1f2006f6f3f (diff) | |
| download | vim-prettier-dc8266d19d7dbe6c9196dec814d8426df3010555.tar.xz | |
Merge branch 'master' into handle-path-whitespace
Diffstat (limited to 'ftplugin/html.vim')
| -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! |
