Skip to content
Browse files

Disable automatic checking of global variables (for now)

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...
1 parent feecf0d commit e15b7be16add081bfe0dba749e9351e592a829ba @xolox committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 autoload/xolox/lua.vim
  2. +1 −1 ftplugin/lua.vim
View
2 autoload/xolox/lua.vim
@@ -66,7 +66,7 @@ function! xolox#lua#autocheck() " {{{1
if xolox#lua#getopt('lua_check_syntax', 1)
call xolox#lua#checksyntax()
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)
endif
endfunction
View
2 ftplugin/lua.vim
@@ -3,7 +3,7 @@
" Author: Peter Odding <peter@peterodding.com>
" Last Change: June 18, 2011
" 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.
" GetLatestVimScripts: 3625 1 :AutoInstall: lua.zip

0 comments on commit e15b7be

Please sign in to comment.
Something went wrong with that request. Please try again.