summary refs log tree commit diff
path: root/.config/nvim/after/luasnippets/gitcommit.lua
blob: 91c686b6525103cf45ea258e9d3eb1858205c74c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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(': '),
  }),
}