feat(snips): NT add conventional base snippet

This commit is contained in:
Thomas Ruoff
2023-05-16 08:14:44 +02:00
parent 2ecdd8ac9b
commit 5cccf653c7

View File

@@ -45,6 +45,19 @@ local snippets = {
end)
),
},
gitcommit = {
s(
{ trig = 'cc', name = 'conventional commit' },
fmt(
[[
{}({}): {} {}
{}
]],
{ i(1, 'type'), i(2, 'scope'), i(3, 'ticket'), i(4, 'message'), i(0) }
)
),
},
lua = {
s('hey', c(1, { t 'hey ho', t 'hoi' })),
s(