summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authortpict <tompicton@tompicton.co.uk>2017-02-02 19:48:18 +0000
committertpict <tompicton@tompicton.co.uk>2017-02-02 19:48:18 +0000
commit32c8d02d6238df31e6d8b8fb32de64564f798dfe (patch)
treeeb2045ef320f8b5fe4549d7015f45a7ec868a583 /ale_linters
parent512b6e00d9379700d65dbf7701dc9631f62866d8 (diff)
downloadale-32c8d02d6238df31e6d8b8fb32de64564f798dfe.zip
Add --enable-neovim flag to vint when appropriate
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/vim/vint.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/vim/vint.vim b/ale_linters/vim/vint.vim
index c25d899c..bc6ea460 100644
--- a/ale_linters/vim/vint.vim
+++ b/ale_linters/vim/vint.vim
@@ -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',
\})