add snippet for section headers
authorLukas Hägele <lukas.haegele93@web.de>
Sun, 18 Oct 2026 11:59:22 +0000 (13:59 +0200)
committerLukas Hägele <lukas.haegele93@web.de>
Sun, 18 Oct 2026 11:59:22 +0000 (13:59 +0200)
lua/config/plugins/completion.lua
snippets/all.json [new file with mode: 0644]
snippets/c.json [new file with mode: 0644]
snippets/package.json [new file with mode: 0644]

index a0e655103b181fee0bd4514f53dd0201648f4506..5dcc3bb24c5c2b253ee46e6e2d6480cd114efc73 100644 (file)
@@ -10,7 +10,7 @@ return {
     'saghen/blink.cmp',
     dependencies = 'rafamadriz/friendly-snippets',
 
-    version = 'v0.*',
+    version = '1.*',
 
     opts = {
       keymap = { preset = 'default' },
diff --git a/snippets/all.json b/snippets/all.json
new file mode 100644 (file)
index 0000000..2c63c08
--- /dev/null
@@ -0,0 +1,2 @@
+{
+}
diff --git a/snippets/c.json b/snippets/c.json
new file mode 100644 (file)
index 0000000..704f31e
--- /dev/null
@@ -0,0 +1,11 @@
+{
+  "section header": {
+    "prefix": "///",
+    "body": [
+      "////////////////////////////////",
+      "// ${1:section}",
+      "$0"
+    ],
+    "description": "add section header"
+  }
+}
diff --git a/snippets/package.json b/snippets/package.json
new file mode 100644 (file)
index 0000000..a91eea6
--- /dev/null
@@ -0,0 +1,9 @@
+{
+  "name": "personal-snippets",
+  "contributes": {
+    "snippets": [
+      { "language": "c", "path": "./c.json" },
+      { "language": "all", "path": "./all.json" }
+    ]
+  }
+}