mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-12 02:14:27 +02:00
enc: update key mapping for comment
This commit is contained in:
parent
1167f053e4
commit
fa09a7248e
6 changed files with 109 additions and 74 deletions
48
mysnippets/go/snippets.json
Normal file
48
mysnippets/go/snippets.json
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"author": {
|
||||
"prefix": "@author",
|
||||
"body": [
|
||||
"/*",
|
||||
"Author = Pojok Code",
|
||||
"email = pojokcodeid@gmail.com",
|
||||
"Github = https://github.com/pojokcodeid",
|
||||
"Youtube = https://youtube.com/pojokcode",
|
||||
"Date = $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}",
|
||||
"File = $TM_FILENAME",
|
||||
"note = Penyalahgunaan kode ini bukan tanggung jawab pojok code",
|
||||
"*/",
|
||||
"$1"
|
||||
],
|
||||
"description": "Komentar Author"
|
||||
},
|
||||
"/*": {
|
||||
"prefix": "/*",
|
||||
"body": ["/*", "* $1", "*/"],
|
||||
"description": "Komentar"
|
||||
},
|
||||
"/": {
|
||||
"prefix": "/",
|
||||
"body": "// $1",
|
||||
"description": "Komentar"
|
||||
},
|
||||
"main": {
|
||||
"prefix": "main",
|
||||
"body": [
|
||||
"package main",
|
||||
"",
|
||||
"import (",
|
||||
"\t\"fmt\"",
|
||||
")",
|
||||
"",
|
||||
"func main() {",
|
||||
"\tfmt.Println($1)",
|
||||
"}"
|
||||
],
|
||||
"description": "main"
|
||||
},
|
||||
"func": {
|
||||
"prefix": "func",
|
||||
"body": ["func $1($2) {", "\t$3", "}"],
|
||||
"description": "func"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue