Replace project-specific snippets with a better format to work with

luasnip
This commit is contained in:
2026-06-24 02:37:24 +03:00
parent 24cb53f04a
commit 43299925b4
3 changed files with 13 additions and 19 deletions

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"