build core, basic and go variants and add template
This commit is contained in:
10
go/nvim/luasnippets/go.lua
Normal file
10
go/nvim/luasnippets/go.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
parse(
|
||||
{ trig = 'func', name = 'Function' },
|
||||
'func ${1:name}($2) $3{\n\t$4\n}'
|
||||
),
|
||||
parse(
|
||||
{ trig = 'err', name = 'Handle error' },
|
||||
'if ${2:err} != nil { return ${1}${2} }'
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user