From 5b56103c693f96aa1240936434a022bd12ae7743 Mon Sep 17 00:00:00 2001 From: deathmaz <00maz1987@gmail.com> Date: Thu, 27 Oct 2016 18:31:49 +0300 Subject: Added optoins variable for htmlhint --- ale_linters/html/htmlhint.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ale_linters/html') diff --git a/ale_linters/html/htmlhint.vim b/ale_linters/html/htmlhint.vim index 649c523a..0892a5ae 100644 --- a/ale_linters/html/htmlhint.vim +++ b/ale_linters/html/htmlhint.vim @@ -1,9 +1,12 @@ -" Author: KabbAmine +" Author: KabbAmine , deathmaz <00maz1987@gmail.com> " Description: HTMLHint for checking html files +" CLI options +let g:ale_html_htmlhint_options = get(g:, 'ale_html_htmlhint_options', '--format=unix stdin') + call ale#linter#Define('html', { \ 'name': 'htmlhint', \ 'executable': 'htmlhint', -\ 'command': 'htmlhint --format=unix stdin', +\ 'command': 'htmlhint ' . g:ale_html_htmlhint_options, \ 'callback': 'ale#handlers#HandleUnixFormatAsError', \}) -- cgit v1.2.3