summaryrefslogtreecommitdiffstats
path: root/.config/nvim/my_snippets
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/my_snippets')
-rw-r--r--.config/nvim/my_snippets/tex.snippets1
1 files changed, 1 insertions, 0 deletions
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
116\\frac{$1}{$2}$0 116\\frac{$1}{$2}$0
117endsnippet 117endsnippet
118 118
119context "math()"
119snippet '((\d+)|(\d*)(\\)?([A-Za-z]+)((\^|_)(\{\d+\}|\d))*)/' "Fraction" wrA 120snippet '((\d+)|(\d*)(\\)?([A-Za-z]+)((\^|_)(\{\d+\}|\d))*)/' "Fraction" wrA
120\\frac{`!p snip.rv = match.group(1)`}{$1}$0 121\\frac{`!p snip.rv = match.group(1)`}{$1}$0
121endsnippet 122endsnippet