Skip to content

Commit

Permalink
Document the global :LuaCheckSyntax and :LuaCheckGlobals commands
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jun 16, 2014
1 parent 17e9003 commit 624ee70
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
14 changes: 12 additions & 2 deletions README.md
Expand Up @@ -119,14 +119,24 @@ By default the Lua file type plug-in sets the ['omnifunc'] [] option so that Vim

By default the Lua file type plug-in defines insert mode mappings so that the plug-in is called whenever you type a single quote, double quote or a dot inside a Lua buffer. This enables context sensitive completion. If you don't like these mappings you can set this option to zero (false). In that case the mappings will not be defined.

## Commands

### The `:LuaCheckSyntax` command

Check the current file for syntax errors using the Lua compiler. This command is executed automatically when you write a Lua script to disk (i.e. when you save your changes) unless `lua_check_syntax` is false.

### The `:LuaCheckGlobals` command

Check the current file for undefined global variables. This command is executed automatically when you write a Lua script to disk (i.e. when you save your changes) unless `lua_check_globals` is false or syntax errors were detected.

## Contact

If you have questions, bug reports, suggestions, etc. the author can be contacted at <peter@peterodding.com>. The latest version is available at <http://peterodding.com/code/vim/lua-ftplugin> and <http://github.com/xolox/vim-lua-ftplugin>. If you like this plug-in please vote for it on [Vim Online][script].

## License

This software is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).
© 2013 Peter Odding &lt;<peter@peterodding.com>&gt;.
This software is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).
© 2014 Peter Odding &lt;<peter@peterodding.com>&gt;.


['completefunc']: http://vimdoc.sourceforge.net/htmldoc/options.html#'completefunc'
Expand Down
29 changes: 25 additions & 4 deletions doc/ft_lua.txt
Expand Up @@ -20,9 +20,12 @@ Contents ~
12. The |lua_define_completefunc| option
13. The |lua_define_omnifunc| option
14. The |lua_define_completion_mappings| option
4. Contact |ft_lua-contact|
5. License |ft_lua-license|
6. References |ft_lua-references|
4. Commands |ft_lua-commands|
1. The |:LuaCheckSyntax| command
2. The |:LuaCheckGlobals| command
5. Contact |ft_lua-contact|
6. License |ft_lua-license|
7. References |ft_lua-references|

===============================================================================
*ft_lua-introduction*
Expand Down Expand Up @@ -229,6 +232,24 @@ inside a Lua buffer. This enables context sensitive completion. If you don't
like these mappings you can set this option to zero (false). In that case the
mappings will not be defined.

===============================================================================
*ft_lua-commands*
Commands ~

-------------------------------------------------------------------------------
The *:LuaCheckSyntax* command

Check the current file for syntax errors using the Lua compiler. This command
is executed automatically when you write a Lua script to disk (i.e. when you
save your changes) unless |lua_check_syntax| is false.

-------------------------------------------------------------------------------
The *:LuaCheckGlobals* command

Check the current file for undefined global variables. This command is executed
automatically when you write a Lua script to disk (i.e. when you save your
changes) unless |lua_check_globals| is false or syntax errors were detected.

===============================================================================
*ft_lua-contact*
Contact ~
Expand All @@ -242,7 +263,7 @@ lua-ftplugin. If you like this plug-in please vote for it on Vim Online [17].
*ft_lua-license*
License ~

This software is licensed under the MIT license [18]. Š 2013 Peter Odding
This software is licensed under the MIT license [18]. Š 2014 Peter Odding
<peter@peterodding.com>.

===============================================================================
Expand Down

0 comments on commit 624ee70

Please sign in to comment.