Skip to content

Commit 164bc3a

Browse files
pbnjlpil
authored andcommitted
feat(ultisnips): add conventional commit snippets
Following [conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) pattern, this commit adds initial support for conventional commits snippets.
1 parent a8ac81b commit 164bc3a

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

UltiSnips/gitcommit.snippets

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# https://www.conventionalcommits.org/en/v1.0.0-beta.2/#specification
2+
3+
snippet fix "fix conventional commit"
4+
fix(${1:scope}): ${2:title}
5+
6+
${0:body}
7+
8+
endsnippet
9+
10+
snippet feat "feat conventional commit"
11+
feat(${1:scope}): ${2:title}
12+
13+
${0:body}
14+
15+
endsnippet
16+
17+
snippet chore "chore conventional commit"
18+
chore(${1:scope}): ${2:title}
19+
20+
${0:body}
21+
22+
endsnippet
23+
24+
snippet docs "docs conventional commit"
25+
docs(${1:scope}): ${2:title}
26+
27+
${0:body}
28+
29+
endsnippet
30+
31+
snippet refactor "refactor conventional commit"
32+
refactor(${1:scope}): ${2:title}
33+
34+
${0:body}
35+
36+
endsnippet
37+
38+
snippet test "test conventional commit"
39+
test(${1:scope}): ${2:title}
40+
41+
${0:body}
42+
43+
endsnippet
44+
45+
snippet ci "ci conventional commit"
46+
ci(${1:scope}): ${2:title}
47+
48+
${0:body}
49+
50+
endsnippet
51+

0 commit comments

Comments
 (0)