Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit e15b7be16add081bfe0dba749e9351e592a829ba 1 parent feecf0d
Peter Odding authored June 18, 2011
2  autoload/xolox/lua.vim
@@ -66,7 +66,7 @@ function! xolox#lua#autocheck() " {{{1
66 66
   if xolox#lua#getopt('lua_check_syntax', 1)
67 67
     call xolox#lua#checksyntax()
68 68
   endif
69  
-  if xolox#lua#getopt('lua_check_globals', 1) && empty(getqflist())
  69
+  if xolox#lua#getopt('lua_check_globals', 0) && empty(getqflist())
70 70
     call xolox#lua#checkglobals(0)
71 71
   endif
72 72
 endfunction
2  ftplugin/lua.vim
@@ -3,7 +3,7 @@
3 3
 " Author: Peter Odding <peter@peterodding.com>
4 4
 " Last Change: June 18, 2011
5 5
 " URL: http://peterodding.com/code/vim/lua-ftplugin
6  
-" Version: 0.6.9
  6
+" Version: 0.6.10
7 7
 
8 8
 " Support for automatic update using the GLVS plug-in.
9 9
 " GetLatestVimScripts: 3625 1 :AutoInstall: lua.zip

0 notes on commit e15b7be

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