vim: rename `nitg` checker to `nitpick`
authorJean Privat <jean@pryen.org>
Fri, 12 Jun 2015 02:48:46 +0000 (22:48 -0400)
committerJean Privat <jean@pryen.org>
Fri, 12 Jun 2015 02:48:46 +0000 (22:48 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

misc/vim/syntax_checkers/nit/nitpick.vim [moved from misc/vim/syntax_checkers/nit/nitg.vim with 76% similarity]

similarity index 76%
rename from misc/vim/syntax_checkers/nit/nitg.vim
rename to misc/vim/syntax_checkers/nit/nitpick.vim
index c3cdd20..aba16c4 100644 (file)
@@ -1,5 +1,5 @@
 "============================================================================
-"File:        nitg.vim
+"File:        nitpick.vim
 "Description: Syntax checking plugin for syntastic.vim
 "Maintainer:  Alexis Laferrière <alexis.laf@xymus.net>
 "License:     This program is free software. It comes without any warranty,
@@ -8,37 +8,37 @@
 "             Want To Public License, Version 2, as published by Sam Hocevar.
 "             See http://sam.zoy.org/wtfpl/COPYING for more details.
 "
-"      g:syntastic_nitg specifies custom path to compiler
+"      g:syntastic_nitpick specifies custom path to `nitpick` tool
 "      g:syntastic_nit_dir specifies the NIT_DIR env variable
-"      g:syntastic_nit_args specifies extra arguments to call nitg
+"      g:syntastic_nit_args specifies extra arguments to call `nitpick`
 "      g:syntastic_nit_include_dirs lists directories to include, must be a list
 "      g:nit_main sets the main module to compile instead of the opened file
 "============================================================================
-if exists("loaded_syntastic_nit_nitg_checker")
+if exists("loaded_syntastic_nit_nitpick_checker")
        finish
 endif
-let loaded_syntastic_nit_nitg_checker = 1
+let loaded_syntastic_nit_nitpick_checker = 1
 
-" check if nitg is accessible
-if exists('g:syntastic_nitg')
-       let s:nitg = g:syntastic_nitg
+" check if nitpick is accessible
+if exists('g:syntastic_nitpick')
+       let s:nitpick = g:syntastic_nitpick
 else
-       let s:nitg = "nitpick"
+       let s:nitpick = "nitpick"
 endif
 
-if !executable(s:nitg)
-       if exists('g:syntastic_nitg')
-               echo "Syntastic for Nit error: Custom tool cannot be found at: " . g:syntastic_nitg
+if !executable(s:nitpick)
+       if exists('g:syntastic_nitpick')
+               echo "Syntastic for Nit error: Custom tool cannot be found at: " . g:syntastic_nitpick
        endif
        finish
 endif
 
-function! SyntaxCheckers_nit_nitg_IsAvailable()
-    return executable(expand(s:nitg))
+function! SyntaxCheckers_nit_nitpick_IsAvailable()
+    return executable(expand(s:nitpick))
 endfunction
 
-function! SyntaxCheckers_nit_nitg_GetLocList()
-       let makeprg = s:nitg . " --no-color -W --vim-autocomplete "
+function! SyntaxCheckers_nit_nitpick_GetLocList()
+       let makeprg = s:nitpick . " --no-color -W --vim-autocomplete "
 
        " custom NIT_DIR
        if exists('g:syntastic_nit_dir')
@@ -97,4 +97,4 @@ endfunction
 
 call g:SyntasticRegistry.CreateAndRegisterChecker({
     \ 'filetype': 'nit',
-    \ 'name': 'nitg'})
+    \ 'name': 'nitpick'})