This commit is contained in:
newbie 2024-01-26 15:32:49 +08:00
parent 1183b67b68
commit c6dd7ac677
2 changed files with 15 additions and 0 deletions

View File

@ -7,5 +7,12 @@ return {
G.cmd [[resize 10]]
G.cmd [[startinsert]]
end, {})
G.api.nvim_create_user_command('Rgin', function()
G.cmd [[set splitbelow]]
G.cmd [[sp]]
G.cmd [[term go run ./main.go]]
G.cmd [[resize 10]]
G.cmd [[startinsert]]
end, {})
end
}

View File

@ -2,5 +2,13 @@
"class": {
"prefix": "class",
"body": "type $1 struct{$2}\n$0"
},
"err": {
"prefix": "err",
"body": [
"if err != nil {",
" panic(err)$1",
"}"
]
}
}