vim: activate -W for syntactic
[nit.git] / misc / vim / syntax_checkers / nit / nitg.vim
index c70bf44..22494b7 100644 (file)
@@ -23,12 +23,12 @@ let loaded_syntastic_nit_nitg_checker = 1
 if exists('g:syntastic_nitg')
        let s:nitg = g:syntastic_nitg
 else
-       let s:nitg = "nitg"
+       let s:nitg = "nitpick"
 endif
 
 if !executable(s:nitg)
        if exists('g:syntastic_nitg')
-               echo "Syntastic for Nit error: Custom nitg cannot be found at: " . g:syntastic_nitg
+               echo "Syntastic for Nit error: Custom tool cannot be found at: " . g:syntastic_nitg
        endif
        finish
 endif
@@ -38,7 +38,7 @@ function! SyntaxCheckers_nit_nitg_IsAvailable()
 endfunction
 
 function! SyntaxCheckers_nit_nitg_GetLocList()
-       let makeprg = s:nitg . " --no-color --only-metamodel "
+       let makeprg = s:nitg . " --no-color --only-metamodel -W "
 
        " custom NIT_DIR
        if exists('g:syntastic_nit_dir')