From f6a7fe0563fc6cf3d5f41ade239d794df37b0566 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 17 Jan 2022 07:14:25 +0100 Subject: [PATCH] Feat: exercise template --- nvim/.config/nvim/vsnips/tex.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nvim/.config/nvim/vsnips/tex.json b/nvim/.config/nvim/vsnips/tex.json index 82f7d17..9164d7a 100644 --- a/nvim/.config/nvim/vsnips/tex.json +++ b/nvim/.config/nvim/vsnips/tex.json @@ -81,5 +81,15 @@ "\\\\end{multicols}" ], "description": "multicols" + }, + "exercise": { + "prefix": "exercise", + "body": [ + "\\\\begin{exercise}[subtitle={${1:subtitle}}, step={${2:1}}, origin={${3:Création}}, topics={${4:chapitre}}, tags={${5:tags}}, mode={${5:groupe}}]", + "\t$0", + "\\\\end{exercise}" + ], + "description": "exercise xsim" + } }