neosnippet.vim/autoload/neosnippet/snippets/lua.snip

21 lines
302 B
Plaintext
Raw Normal View History

2012-09-23 05:26:56 +00:00
snippet func
alias function
function ${1:function_name}(${2:argument})
${0:// body...}
end
2012-09-23 05:26:56 +00:00
snippet if
if (${1:true}) then
${0:$TM_SELECTED_TEXT}
end
2012-09-23 05:26:56 +00:00
snippet for
for ${2:i} = 0, ${1:Things} do
${0}
end
2012-09-23 05:26:56 +00:00
snippet forin
for ${2:k}, ${3:v} in ${1:ipairs(xs)} do
${0}
end