nvim-config

Log | Files | Refs | Submodules | README

commit 68e905cec68449e29247991c03e3ceb183be388a
parent b718fe925c82ff25040f49e0585ea95871b67754
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date:   Mon, 17 Oct 2022 08:17:37 +0200

snippets: add mail snippets

Diffstat:
Mlua/completree-config.lua | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/lua/completree-config.lua b/lua/completree-config.lua @@ -144,9 +144,6 @@ ls.add_snippets('gitcommit', { s({ trig = "coauth", name = "Co Author", dscr = "A git co-author" }, { t "Co-authored-by: ", i(1, "name"), t " <", i(2, "email"), t ">" }), - s({ trig = "ack", name = "Acked-by line" }, { - f(commit_line, {}, { user_args = { "Acked-by" } }) - }), s({ trig = "fix", name = "Fix message", dscr = "Fix without scope or breaking" }, convcommit_snippet "fix"), s({ trig = "feat", name = "Feature message", dscr = "Feature without scope or breaking" }, convcommit_snippet "feat"), s({ trig = "chore", name = "Chore change", dscr = "An update or whatever" }, convcommit_snippet "chore") @@ -167,3 +164,12 @@ ls.add_snippets('text', { ls.add_snippets('lua', { s('lreq', { t 'local ', dl(2, l._1:match '[^.]+$', 1), t " = require'", i(1), t { "'", '' } }), }) + +ls.add_snippets('mail', { + s({ trig = "ack", name = "Acked-by line" }, { + f(commit_line, {}, { user_args = { "Acked-by" } }) + }), + s({ trig = "tested", name = "Tested-by line" }, { + f(commit_line, {}, { user_args = { "Tested-by" } }) + }), +})