summaryrefslogtreecommitdiff
path: root/User/lua_lambda.sublime-snippet
diff options
context:
space:
mode:
Diffstat (limited to 'User/lua_lambda.sublime-snippet')
-rw-r--r--User/lua_lambda.sublime-snippet11
1 files changed, 11 insertions, 0 deletions
diff --git a/User/lua_lambda.sublime-snippet b/User/lua_lambda.sublime-snippet
new file mode 100644
index 0000000..c2f0d84
--- /dev/null
+++ b/User/lua_lambda.sublime-snippet
@@ -0,0 +1,11 @@
+<snippet>
+ <content><![CDATA[
+function ($1)
+ ${3:return ${2:foo()};}
+end
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>lambda</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.lua,source.luae</scope>
+</snippet>