Replace project-specific snippets with a better format to work with
luasnip
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"carbonight.nvim group": {
|
||||
"group": {
|
||||
"body": [
|
||||
"--[[",
|
||||
"Copyright (C) 2024-2025 Kyren223",
|
||||
"Copyright (C) 2026 Kyren223",
|
||||
"This file is licensed under the GPL-3.0-or-later license, see https://fsf.org/licenses/gpl-3.0",
|
||||
"--]]",
|
||||
"",
|
||||
@@ -19,6 +19,7 @@
|
||||
"",
|
||||
"return M"
|
||||
],
|
||||
"prefix": "group"
|
||||
"prefix": "group",
|
||||
"scope": "lua"
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,18 @@
|
||||
{
|
||||
"eko dberr": {
|
||||
"dberr": {
|
||||
"body": "slog.ErrorContext(ctx, \"database error\", \"error\", err)",
|
||||
"prefix": "dberr"
|
||||
"prefix": "dberr",
|
||||
"scope": "go"
|
||||
},
|
||||
"eko serverapi": {
|
||||
"serverapi": {
|
||||
"body": [
|
||||
"func $1(ctx context.Context, sess *session.Session, request *packet$0) packet.Payload {",
|
||||
"}"
|
||||
],
|
||||
"prefix": "serverapi"
|
||||
"prefix": "serverapi",
|
||||
"scope": "go"
|
||||
},
|
||||
"eko teamodel": {
|
||||
"teamodel": {
|
||||
"body": [
|
||||
"import (",
|
||||
"\t\"fmt\"",
|
||||
@@ -42,6 +44,7 @@
|
||||
"\t}",
|
||||
"}"
|
||||
],
|
||||
"prefix": "teamodel"
|
||||
"prefix": "teamodel",
|
||||
"scope": "go"
|
||||
}
|
||||
}
|
||||
@@ -7,22 +7,12 @@
|
||||
],
|
||||
"path": "./lua.json"
|
||||
},
|
||||
{
|
||||
"language": "lua",
|
||||
"path": "./carbonight-lua.json"
|
||||
},
|
||||
{
|
||||
"language": [
|
||||
"go"
|
||||
],
|
||||
"path": "./go.json"
|
||||
},
|
||||
{
|
||||
"language": [
|
||||
"go"
|
||||
],
|
||||
"path": "./eko-go.json"
|
||||
},
|
||||
{
|
||||
"language": [
|
||||
"c"
|
||||
|
||||
Reference in New Issue
Block a user