snippets added
This commit is contained in:
1 parent
6c10ae3461
commit
2080230313
18 files changed
+1083
-16
No files matched your search
@@ -0,0 +1,24 @@
|
||||
snippet #!
|
||||
#!/usr/bin/env lua
|
||||
$1
|
||||
|
||||
snippet for
|
||||
for ${1:i}=${2:1},${3:10} do
|
||||
${0:print(i)}
|
||||
end
|
||||
|
||||
snippet forp
|
||||
for ${1:i},${2:v} in pairs(${3:table_name}) do
|
||||
${0:-- body}
|
||||
end
|
||||
|
||||
snippet fori
|
||||
for ${1:i},${2:v} in ipairs(${3:table_name}) do
|
||||
${0:-- body}
|
||||
end
|
||||
|
||||
snippet fn "Create a local function"
|
||||
local $1 = function($2)
|
||||
$0
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user