Editing Sublime Text packages

published 2014-03-03

I have finally decided to configure Sublime Text 2 to have it autocomplete Lua code the way I want it to.

For instance, by default, when you start typing `function` and hit TAB, you get the following result:

Instead I wanted this:

It turns out this is very simple. Go to `Preferences -> Browse Packages...` and open the Lua directory. There are several files there, including two named function-(fun).sublime-snippet and function-(function).sublime-snippet which do almost the same thing.

Remove the first one and open the second one in a text editor. Its content should be something like:

Replace it by:

... and that is all, the deed is done!

Proxied content from gemini://separateconcerns.com/2014-03-03-sublime-packages.gmi (external content)

Gemini request details:

Original URL
gemini://separateconcerns.com/2014-03-03-sublime-packages.gmi
Status code
Success
Meta
text/gemini;lang=en_US
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.