summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/schemes.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2024-06-09 12:08:40 +0200
committerNanderty <psopka@sopka.ch>2024-06-09 12:14:25 +0200
commitedd3240b6c576d3abcf37bd4a9a4934ed7209bc1 (patch)
treeebb6f4af65ed434e422ef945bf112de7269b5949 /lua/Snippets/tex/schemes.lua
parent95861d87d2235f5a3bda5ada226c1c884e33d1bb (diff)
downloadneovim-config-edd3240b6c576d3abcf37bd4a9a4934ed7209bc1.tar.gz
neovim-config-edd3240b6c576d3abcf37bd4a9a4934ed7209bc1.tar.bz2
neovim-config-edd3240b6c576d3abcf37bd4a9a4934ed7209bc1.zip
fixes
Diffstat (limited to 'lua/Snippets/tex/schemes.lua')
-rw-r--r--lua/Snippets/tex/schemes.lua60
1 files changed, 57 insertions, 3 deletions
diff --git a/lua/Snippets/tex/schemes.lua b/lua/Snippets/tex/schemes.lua
index f87552a..a8219ce 100644
--- a/lua/Snippets/tex/schemes.lua
+++ b/lua/Snippets/tex/schemes.lua
@@ -64,7 +64,7 @@ return {
{ condition = tex.in_scheme }
),
- s({ trig = 'ssc', snippetType = 'autosnippet' },
+ s({ trig = 'sbsch', snippetType = 'autosnippet' },
fmta(
[[
\subscheme {
@@ -94,7 +94,22 @@ return {
s({ trig = 'arr', snippetType = 'autosnippet' },
fmta(
- '\\arrow(<>){<>}[<>]',
+ '\\arrow{<>}[<>]',
+ {
+ i(1),
+ i(2),
+ }
+ ),
+ { condition = tex.in_scheme }
+ ),
+
+ s({ trig = 'chlr', snippetType = 'autosnippet' },
+ fmta(
+ [[
+\chemleft{<>}
+ <>
+\chemright{<>}
+ ]],
{
i(1),
i(2),
@@ -104,6 +119,34 @@ return {
{ condition = tex.in_scheme }
),
+ s({ trig = 'nmi', snippetType = 'autosnippet' },
+ fmta(
+ [[
+\chemnameinit{
+ <>
+}
+ ]],
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_scheme }
+ ),
+
+ s({ trig = 'pbx', snippetType = 'autosnippet' },
+ fmta(
+ [[\parbox{<>}{
+ <>
+}
+ ]],
+ {
+ i(1),
+ i(2),
+ }
+ ),
+ { condition = tex.in_scheme }
+ ),
+
s({ trig = 'move', snippetType = 'autosnippet' },
fmta(
[[
@@ -175,11 +218,22 @@ return {
{ condition = tex.in_scheme }
),
+ s({ trig = 'lbl', snippetType = 'autosnippet' },
+ fmta(
+ '\\label{<>:<>}',
+ {
+ i(1),
+ i(2),
+ }
+ )
+ ),
+
s({ trig = 'rfr', snippetType = 'autosnippet' },
fmta(
- [[ \ref{fig:<>}]],
+ [[ \cref{<>:<>}]],
{
i(1),
+ i(2),
}
)
),