Merge pull request #294 from tpict/master
Add vint support for Neovim commands
This commit is contained in:
commit
744d7d789f
@ -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