Add --enable-neovim flag to vint when appropriate

This commit is contained in:
tpict 2017-02-02 19:48:18 +00:00
parent 512b6e00d9
commit 32c8d02d62

View File

@ -6,6 +6,7 @@ let g:ale_vim_vint_show_style_issues =
\ get(g:, 'ale_vim_vint_show_style_issues', 1)
let s:warning_flag = g:ale_vim_vint_show_style_issues ? '-s' : '-w'
let s:enable_neovim = has('nvim') ? ' --enable-neovim ' : ''
let s:format = '-f "{file_path}:{line_number}:{column_number}: {severity}: {description} (see {reference})"'
call ale#linter#Define('vim', {
@ -15,6 +16,7 @@ call ale#linter#Define('vim', {
\ . ' .vim vint '
\ . s:warning_flag
\ . ' --no-color '
\ . s:enable_neovim
\ . s:format,
\ 'callback': 'ale#handlers#HandleGCCFormat',
\})