From 5cccf653c7a545e6a8253544ae058900b582facd Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 16 May 2023 08:14:44 +0200 Subject: [PATCH] feat(snips): NT add conventional base snippet --- after/plugin/snips.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/after/plugin/snips.lua b/after/plugin/snips.lua index 098e9d2..d2d3e69 100644 --- a/after/plugin/snips.lua +++ b/after/plugin/snips.lua @@ -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(