[nvim] simplify conf and add latex support

This commit is contained in:
2023-09-07 17:05:49 +01:00
parent 7478fee064
commit 661ae62d3c
17 changed files with 70 additions and 690 deletions

View File

@@ -0,0 +1,16 @@
priority -10
extends tex
snippet "\\begin\{(\w+)\}" "multiline begin{} / end{}" rbA
\begin{`!p snip.rv = match.group(1)`}
$1
\end{`!p snip.rv = match.group(1)`}
$0
endsnippet
priority -20
snippet "(?<!^)\\begin\{(\w+)\}" "inline begin{} / end{}" riA
\begin{`!p snip.rv = match.group(1)`} $1 \end{`!p snip.rv = match.group(1)`} $0
endsnippet