- Open Sublime
- Install Package Control
- Press Ctrl + Shift + P
- type install and press enter
- Type Gmod and press enter
- Restart sublime text
When using sublime text 3 you will have to disable the default Lua plugin. Otherwise the default Lua plugin will remain as the default syntax highlight for all .lua files. This can be done by adding "Lua" to the ignored_packages setting. If you don't know how to do this, do this:
- Preferences > Settings - User
- Add a comma after the last setting
- Make a newline under the last setting
- Paste the following line:
"ignored_packages": ["Vintage", "Lua"]
(Note how "Vintage" is also there. It's a package that's disabled by default.)
- Open sublime
- Select Preferences > Browse Packages...
- Copy the folder in which this README.txt is located, to the folder that just opened
- Restart sublime
WHEN INSTALLED: Open a lua file and go to view > Apply Syntax Highlighting > Gmod Lua. This file and the next one you'll open will have the GLua syntax.
Thanks to @JohnnyCrazy and @djtb2924 for their wiki scrapers that provides the autocomplete entries!