From 0513efb0c155264ac8f31105d3edade87acc6b88 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 14 Nov 2021 23:53:41 +0300 Subject: nvim: latex snippet math context --- .config/nvim/my_snippets/tex.snippets | 1 + 1 file changed, 1 insertion(+) (limited to '.config/nvim') diff --git a/.config/nvim/my_snippets/tex.snippets b/.config/nvim/my_snippets/tex.snippets index ea34781..f81ad94 100644 --- a/.config/nvim/my_snippets/tex.snippets +++ b/.config/nvim/my_snippets/tex.snippets @@ -116,6 +116,7 @@ snippet // "Fraction" iA \\frac{$1}{$2}$0 endsnippet +context "math()" snippet '((\d+)|(\d*)(\\)?([A-Za-z]+)((\^|_)(\{\d+\}|\d))*)/' "Fraction" wrA \\frac{`!p snip.rv = match.group(1)`}{$1}$0 endsnippet -- cgit v1.2.3-70-g09d2