This Vim plug-in uses the LuaInspect tool to (automatically) perform semantic highlighting of variables in Lua source code. It was inspired by lua2-mode (for Emacs) and the SciTE plug-in included with LuaInspect. For more information about the plug-in please refer to its homepage or the project page on GitHub:
•
http://peterodding.com/code/vim/lua-inspect/
•
http://github.com/xolox/vim-lua-inspect
If you have questions, bug reports, suggestions, etc. the author can be contacted at peter@peterodding.com. If you like this plug-in please vote for it below!
Please note that the vim-lua-inspect plug-in requires my vim-misc plug-in which is separately distributed (see
vimscript #4597).
Unzip the most recent ZIP archives of the vim-lua-inspect and vim-misc plug-ins inside your Vim profile directory (usually this is ~/.vim on UNIX and %USERPROFILE%\vimfiles on Windows), restart Vim and execute the command :helptags ~/.vim/doc (use :helptags ~\vimfiles\doc instead on Windows).
If you prefer you can also use Pathogen, Vundle or a similar tool to install & update the vim-lua-inspect and vim-misc plug-ins using a local clone of the git repository.
Now try it out: Edit a Lua file and within a few seconds semantic highlighting should be enabled automatically!
Note that on Windows a command prompt window pops up whenever LuaInspect is run as an external process. If this bothers you then you can install my shell.vim plug-in (see
vimscript #3123) which includes a DLL that works around this issue. Once you’ve installed both plug-ins it should work out of the box!
Click on the package to download.