Skip to content

Commit

Permalink
Disable automatic checking of global variables (for now)
Browse files Browse the repository at this point in the history
I've found that the naive script I wrote to 'warn about' references to
global variables can really get on your nerves because every time it
runs it resets the height of the quickfix list. Also it can give a lot
of output on bigger scripts which is so overwhelming it becomes useless.
Until I can decrease the verbosity of the script I'm disabling automatic
globals checking by default. Users can still enable it if they want and
of course you can always execute :CheckGlobals(!) manually.
  • Loading branch information
xolox committed Jun 18, 2011
1 parent feecf0d commit e15b7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/xolox/lua.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function! xolox#lua#autocheck() " {{{1
if xolox#lua#getopt('lua_check_syntax', 1) if xolox#lua#getopt('lua_check_syntax', 1)
call xolox#lua#checksyntax() call xolox#lua#checksyntax()
endif endif
if xolox#lua#getopt('lua_check_globals', 1) && empty(getqflist()) if xolox#lua#getopt('lua_check_globals', 0) && empty(getqflist())
call xolox#lua#checkglobals(0) call xolox#lua#checkglobals(0)
endif endif
endfunction endfunction
Expand Down
2 changes: 1 addition & 1 deletion ftplugin/lua.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
" Author: Peter Odding <peter@peterodding.com> " Author: Peter Odding <peter@peterodding.com>
" Last Change: June 18, 2011 " Last Change: June 18, 2011
" URL: http://peterodding.com/code/vim/lua-ftplugin " URL: http://peterodding.com/code/vim/lua-ftplugin
" Version: 0.6.9 " Version: 0.6.10


" Support for automatic update using the GLVS plug-in. " Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3625 1 :AutoInstall: lua.zip " GetLatestVimScripts: 3625 1 :AutoInstall: lua.zip
Expand Down

0 comments on commit e15b7be

Please sign in to comment.