Add --enable-neovim flag to vint when appropriate
This commit is contained in:
parent
512b6e00d9
commit
32c8d02d62
@ -6,6 +6,7 @@ let g:ale_vim_vint_show_style_issues =
|
|||||||
\ get(g:, 'ale_vim_vint_show_style_issues', 1)
|
\ get(g:, 'ale_vim_vint_show_style_issues', 1)
|
||||||
|
|
||||||
let s:warning_flag = g:ale_vim_vint_show_style_issues ? '-s' : '-w'
|
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})"'
|
let s:format = '-f "{file_path}:{line_number}:{column_number}: {severity}: {description} (see {reference})"'
|
||||||
|
|
||||||
call ale#linter#Define('vim', {
|
call ale#linter#Define('vim', {
|
||||||
@ -15,6 +16,7 @@ call ale#linter#Define('vim', {
|
|||||||
\ . ' .vim vint '
|
\ . ' .vim vint '
|
||||||
\ . s:warning_flag
|
\ . s:warning_flag
|
||||||
\ . ' --no-color '
|
\ . ' --no-color '
|
||||||
|
\ . s:enable_neovim
|
||||||
\ . s:format,
|
\ . s:format,
|
||||||
\ 'callback': 'ale#handlers#HandleGCCFormat',
|
\ 'callback': 'ale#handlers#HandleGCCFormat',
|
||||||
\})
|
\})
|
||||||
|
Loading…
Reference in New Issue
Block a user