mirror of
https://github.com/tomru/vim.git
synced 2026-03-03 06:27:18 +01:00
feat(snips): NT add conventional base snippet
This commit is contained in:
@@ -45,6 +45,19 @@ local snippets = {
|
|||||||
end)
|
end)
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
gitcommit = {
|
||||||
|
s(
|
||||||
|
{ trig = 'cc', name = 'conventional commit' },
|
||||||
|
fmt(
|
||||||
|
[[
|
||||||
|
{}({}): {} {}
|
||||||
|
|
||||||
|
{}
|
||||||
|
]],
|
||||||
|
{ i(1, 'type'), i(2, 'scope'), i(3, 'ticket'), i(4, 'message'), i(0) }
|
||||||
|
)
|
||||||
|
),
|
||||||
|
},
|
||||||
lua = {
|
lua = {
|
||||||
s('hey', c(1, { t 'hey ho', t 'hoi' })),
|
s('hey', c(1, { t 'hey ho', t 'hoi' })),
|
||||||
s(
|
s(
|
||||||
|
|||||||
Reference in New Issue
Block a user