diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
| commit | f1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch) | |
| tree | bbe77eacaef8ab8a5999e517c3006973c9e3e44c /luasnip_snippets/go.json | |
| parent | 823302458ec6c53455a3f34674415c43ce6a3187 (diff) | |
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/go.json')
| -rw-r--r-- | luasnip_snippets/go.json | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/luasnip_snippets/go.json b/luasnip_snippets/go.json new file mode 100644 index 0000000..1a52ce5 --- /dev/null +++ b/luasnip_snippets/go.json @@ -0,0 +1,26 @@ +{ + "map": { + "prefix": "map", + "description": "Map type", + "body": "map[${1:keytype}]${2:valtype}" + }, + ":": { + "prefix": ":", + "description": "Variable declaration :=", + "body": "${1:name} := ${0:value}" + }, + "json": { + "prefix": "json", + "description": "JSON field", + "body": "`json:\"${1:displayName}\"`" + }, + "err": { + "prefix": "err", + "description": "Basic error handling", + "body": [ + "if err != nil {", + "\tlog.${1:Fatal}(err)", + "\\}" + ] + } +} |
