From e5824806aef1edb462faf1dc540b6538ba3acb0e Mon Sep 17 00:00:00 2001 From: mitermayer Date: Thu, 13 Feb 2020 11:17:38 +0000 Subject: Adding support for the php pluggin - This adds support for the PHP prettier plugin - Fixes a bug where html overwrites php files parsers --- ftplugin/html.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftplugin/html.vim') diff --git a/ftplugin/html.vim b/ftplugin/html.vim index e27828a..4d37544 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -1,6 +1,6 @@ -" markdown files run this as well +" 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 &ft !~# 'markdown' +if &ft ==# 'html' let b:prettier_ft_default_args = { \ 'parser': 'html', \ } -- cgit v1.3