From bb933741a04e61b035358a4c1174ac953a403114 Mon Sep 17 00:00:00 2001 From: Mathew Attlee Date: Fri, 10 Nov 2023 21:43:58 +0100 Subject: [PATCH] feat: add 'style' to gitcommit prefixes --- UltiSnips/gitcommit.snippets | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/UltiSnips/gitcommit.snippets b/UltiSnips/gitcommit.snippets index e2f1ba5d0..84058e4c5 100644 --- a/UltiSnips/gitcommit.snippets +++ b/UltiSnips/gitcommit.snippets @@ -8,7 +8,7 @@ def complete(t, opts): endglobal snippet status "Status" bA -status $1`!p snip.rv = complete(t[1], ['build', 'ci', 'test', 'refactor', 'perf', 'improvement', 'docs', 'chore', 'feat', 'fix'])` +status $1`!p snip.rv = complete(t[1], ['build', 'ci', 'test', 'refactor', 'perf', 'improvement', 'docs', 'chore', 'feat', 'fix', 'style'])` endsnippet snippet fix "fix conventional commit" @@ -71,6 +71,12 @@ build(${1:scope}): ${2:title} ${0:${VISUAL}} endsnippet +snippet style "style conventional commit" +style(${1:scope}): ${2:title} + +${0:${VISUAL}} +endsnippet + snippet sign "Signature" ------------------------------------------------------------------------------- ${1:Company Name}