From 77c95fbb15af968d260f829f8e0c0c221fb56d56 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 6 Jan 2022 21:10:41 +0300 Subject: nvim: new snippets --- .config/nvim/my_snippets/tex.snippets | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.config/nvim/my_snippets/tex.snippets') diff --git a/.config/nvim/my_snippets/tex.snippets b/.config/nvim/my_snippets/tex.snippets index f81ad94..9941420 100644 --- a/.config/nvim/my_snippets/tex.snippets +++ b/.config/nvim/my_snippets/tex.snippets @@ -106,6 +106,11 @@ snippet '([A-Za-z])(\d)' "auto subscript" wrA `!p snip.rv = match.group(1)`_`!p snip.rv = match.group(2)` endsnippet +context "math()" +snippet -> "auto rightarrow" wrA +\rightarrow +endsnippet + context "math()" snippet '([A-Za-z])_(\d\d)' "auto subscript2" wrA `!p snip.rv = match.group(1)`_{`!p snip.rv = match.group(2)`} -- cgit v1.2.3-70-g09d2