summary refs log tree commit diff
path: root/.config/nvim/after/luasnippets
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/luasnippets')
-rw-r--r--.config/nvim/after/luasnippets/gitcommit.lua24
-rw-r--r--.config/nvim/after/luasnippets/zig.lua14
2 files changed, 38 insertions, 0 deletions
diff --git a/.config/nvim/after/luasnippets/gitcommit.lua b/.config/nvim/after/luasnippets/gitcommit.lua
new file mode 100644
index 0000000..91c686b
--- /dev/null
+++ b/.config/nvim/after/luasnippets/gitcommit.lua
@@ -0,0 +1,24 @@
+---@diagnostic disable: undefined-global
+return {
+  s({ trig = 'cz', descr = 'conventional commit' }, {
+    c(1, {
+      t('feat'),
+      t('fix'),
+      t('docs'),
+      t('style'),
+      t('refactor'),
+      t('perf'),
+      t('test'),
+      t('chore'),
+    }),
+    c(2, {
+      t(''),
+      sn(nil, {
+        t('('),
+        i(1, 'scope'),
+        t(')'),
+      }),
+    }),
+    t(': '),
+  }),
+}
diff --git a/.config/nvim/after/luasnippets/zig.lua b/.config/nvim/after/luasnippets/zig.lua
new file mode 100644
index 0000000..ab80e82
--- /dev/null
+++ b/.config/nvim/after/luasnippets/zig.lua
@@ -0,0 +1,14 @@
+---@diagnostic disable: undefined-global
+return {
+  s({trig = 'str'}, t("[]const u8")),
+  s({trig = 'test'}, {
+    c(1, {
+      t('a'),
+      t('b'),
+    }),
+    c(2, {
+      t('c'),
+      t('d'),
+    }),
+  }),
+}