summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authordeathmaz <00maz1987@gmail.com>2016-10-27 18:31:49 +0300
committerdeathmaz <00maz1987@gmail.com>2016-10-27 18:31:49 +0300
commit5b56103c693f96aa1240936434a022bd12ae7743 (patch)
tree12542cbfae68f65c353e08be3475a78a55610913 /ale_linters
parentc8821fc0495d1d75cb3d716d73c4c28877e3513a (diff)
downloadale-5b56103c693f96aa1240936434a022bd12ae7743.zip
Added optoins variable for htmlhint
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/html/htmlhint.vim7
1 files changed, 5 insertions, 2 deletions
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 <amine.kabb@gmail.com>
+" Author: KabbAmine <amine.kabb@gmail.com>, 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',
\})