diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/my_snippets/tex.snippets | 1 |
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 |
117 | endsnippet | 117 | endsnippet |
118 | 118 | ||
119 | context "math()" | ||
119 | snippet '((\d+)|(\d*)(\\)?([A-Za-z]+)((\^|_)(\{\d+\}|\d))*)/' "Fraction" wrA | 120 | snippet '((\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 |
121 | endsnippet | 122 | endsnippet |