Added optoins variable for htmlhint

This commit is contained in:
deathmaz
2016-10-27 18:31:49 +03:00
parent c8821fc049
commit 5b56103c69
2 changed files with 16 additions and 2 deletions

View File

@@ -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',
\})