summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/figures.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-09-23 12:45:34 +0200
committerNanderty <psopka@sopka.ch>2023-09-23 12:45:34 +0200
commite419285b1f90b0dc77cb3d20bd11ba3c01f5c3bc (patch)
treef559371bf9599f30a3aa262b2cbe6f44692910d5 /lua/Snippets/tex/figures.lua
parent52cd974b95bb59f6500426fe020a2983dc0d37eb (diff)
downloadneovim-config-e419285b1f90b0dc77cb3d20bd11ba3c01f5c3bc.tar.gz
neovim-config-e419285b1f90b0dc77cb3d20bd11ba3c01f5c3bc.tar.bz2
neovim-config-e419285b1f90b0dc77cb3d20bd11ba3c01f5c3bc.zip
Snippets and code improvements
Diffstat (limited to 'lua/Snippets/tex/figures.lua')
-rw-r--r--lua/Snippets/tex/figures.lua55
1 files changed, 46 insertions, 9 deletions
diff --git a/lua/Snippets/tex/figures.lua b/lua/Snippets/tex/figures.lua
index 3cbed87..81a4368 100644
--- a/lua/Snippets/tex/figures.lua
+++ b/lua/Snippets/tex/figures.lua
@@ -11,8 +11,7 @@ return {
\chemfig {
<>
}
- \caption{
- <>
+ \caption{<>
}
\label{fig:<>}
\end{figure}
@@ -36,8 +35,7 @@ return {
<>
}
\schemestop
- \caption{
- <>
+ \caption{<>
}
\label{fig:<>}
\end{figure}
@@ -59,8 +57,7 @@ return {
\includegraphics
[<>]
{<>}
- \caption{
- <>
+ \caption{<>
}
\label{fig:<>}
\end{figure}
@@ -84,8 +81,7 @@ return {
{<>}
{!}
{\input{<>}}
- \caption{
- <>
+ \caption{<>
}
\label{fig:<>}
\end{figure}
@@ -100,7 +96,7 @@ return {
{ condition = helper.line_begin }
),
- s({ trig = 'sch', snippetType = 'autosnippet' },
+ s({ trig = 'scm', snippetType = 'autosnippet' },
fmta(
[[
\schemestart
@@ -184,6 +180,27 @@ return {
{ condition = tex.in_figure }
),
+ s({ trig = 'brc', snippetType = 'autosnippet' },
+ fmta(
+ [[
+\polymerdelim[height = <>, depth = <>,
+ open xshift=<>, close xshift=<>,
+ indice = \!\!<>]
+ {op<>}{cl<>}
+]],
+ {
+ i(1),
+ i(2),
+ i(3),
+ i(4),
+ i(5),
+ i(6),
+ i(7),
+ }
+ ),
+ { condition = tex.in_figure }
+ ),
+
s({ trig = 'nme', snippetType = 'autosnippet' },
fmta(
[[
@@ -208,4 +225,24 @@ return {
{ t('\\oplus') },
{ condition = tex.in_figure }
),
+
+ s({ trig = 'crp', snippetType = 'autosnippet' },
+ fmta(
+ [[(-[::<>,0.2,,,draw=none]\oplus)]],
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_figure }
+ ),
+
+ s({ trig = 'crm', snippetType = 'autosnippet' },
+ fmta(
+ [[(-[::<>,0.2,,,draw=none]\ominus)]],
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_figure }
+ ),
}