From 26dcdabdfb0b7b2f4229561d61d67862134d9e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alberto=20Orejuela=20Garc=C3=ADa?= Date: Fri, 5 Aug 2022 16:52:38 +0200 Subject: [PATCH] Add snippets --- .config/nvim/UltiSnips/tex.snippets | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.config/nvim/UltiSnips/tex.snippets b/.config/nvim/UltiSnips/tex.snippets index f9c9d84..7aee891 100644 --- a/.config/nvim/UltiSnips/tex.snippets +++ b/.config/nvim/UltiSnips/tex.snippets @@ -51,6 +51,13 @@ snippet b "begin{} / end{}" bm \end{$1} endsnippet +snippet bg "begingroup" b +\begingroup +${VISUAL}$1 +\endgroup +$0 +endsnippet + snippet s "section" b \section{$1} @@ -87,6 +94,10 @@ snippet sssi "subsubsection*" b $0 endsnippet +snippet it "textit" w +\textit{${VISUAL}$1}$0 +endsnippet + snippet bn "Enumerate" b \begin{enumerate} \item $1 -- 2.45.2