Changed colorscheme and updated tmux config +++

This commit is contained in:
2025-02-23 15:35:10 +01:00
parent 49040e91e9
commit 233daaf97d
29 changed files with 796 additions and 308 deletions

View File

@@ -21,6 +21,28 @@ end
-- Snippets --
local minipage = s(
{ trig = "mp", desc = "Minipage Environment" },
fmt(
[[
\begin{{minipage}}{{{}\linewidth}}
{}
\end{{minipage}}
\begin{{minipage}}{{{}\linewidth}}
{}
\end{{minipage}} {}
]],
{
i(1, "Size of Box 1"),
i(2, "Contents of Box 1"),
i(3, "Size of Box 2"),
i(4, "Contents of Box 2"),
i(0),
}
)
)
table.insert(autosnippets, minipage)
local item = s(
{ trig = "-it", desc = "Itemize & Enumerate Item" },
fmt(
@@ -148,6 +170,166 @@ local figcap = s(
)
table.insert(autosnippets, figcap)
local sk = s(
{ trig = "sk", regTrig = true, desc = "skalar product" },
fmt(
[[
<{},{}> {}
]],
{
i(1, "Vector 1"),
i(2, "Vector 2"),
i(3, ""),
}
),
{
condition = math,
show_condition = math,
}
)
table.insert(autosnippets, sk)
local thm = s(
{ trig = "thm", regTrig = true, desc = "Theorem Block" },
fmt(
[[
\thm{{{}}}{{
{}
}}
{}
]],
{
i(1, "Title of Theorem"),
i(2, "Contents of Theorem"),
i(3, ""),
}
)
)
table.insert(autosnippets, thm)
local pf = s(
{ trig = "prf", regTrig = true, desc = "Proof Block" },
fmt(
[[
\pf{{{}}}{{
{}
}}
{}
]],
{
i(1, "Title of proof"),
i(2, "Contents of proof"),
i(3, ""),
}
)
)
table.insert(autosnippets, pf)
local cor = s(
{ trig = "cor", regTrig = true, desc = "Corollary Block" },
fmt(
[[
\cor{{{}}}{{
{}
}}
{}
]],
{
i(1, "Title of corollary"),
i(2, "Contents of corollary"),
i(3, ""),
}
)
)
table.insert(autosnippets, cor)
local lenma = s(
{ trig = "lenma", regTrig = true, desc = "Lenma Block" },
fmt(
[[
\mlenma{{{}}}{{
{}
}}
{}
]],
{
i(1, "Title of lenma"),
i(2, "Contents of lenma"),
i(3, ""),
}
)
)
table.insert(autosnippets, lenma)
local dnf = s(
{ trig = "dfn", regTrig = true, desc = "Definition Block" },
fmt(
[[
\dfn{{{}}}{{
{}
}}
{}
]],
{
i(1, "Title of definition"),
i(2, "Contents of definition"),
i(3, ""),
}
)
)
table.insert(autosnippets, dnf)
local nt = s(
{ trig = "nt", regTrig = true, desc = "Note Block" },
fmt(
[[
\nt{{
{}
}}
{}
]],
{
i(1, "Contents of notes"),
i(2, ""),
}
)
)
table.insert(autosnippets, nt)
local myexe = s(
{ trig = "myexe", desc = "Exercise Block" },
fmt(
[[
\exe{{{}}}{{
{}
}}{}
]],
{
i(1, "Name of exercise"),
i(2, "Contents of exercise"),
i(0),
}
)
)
table.insert(autosnippets, myexe)
local myexa = s(
{ trig = "myexa", desc = "Example Block" },
fmt(
[[
\exa{{{}}}{{
{}
}}{}
]],
{
i(1, "Name of example"),
i(2, "Contents of example"),
i(0),
}
)
)
table.insert(autosnippets, myexa)
-- Math --
local qed = s(
@@ -339,10 +521,10 @@ local cube = s(
table.insert(autosnippets, cube)
local superscript = s(
{ trig = "tp", desc = "superscript" },
{ trig = "-tp", regTrig = true, desc = "superscript" },
fmt(
[[
^{}{}
^{{{}}}{}
]],
{
i(1),
@@ -356,6 +538,52 @@ local superscript = s(
)
table.insert(autosnippets, superscript)
local subscript = s(
{ trig = "(%a)(%d)", regTrig = true, desc = "subscript" },
fmt(
[[
{}_{}{}
]],
{
f(function(_, snip)
return snip.captures[1]
end),
f(function(_, snip)
return snip.captures[2]
end),
i(0),
}
),
{
condition = math,
show_condition = math,
}
)
table.insert(autosnippets, subscript)
local subcsript2 = s(
{ trig = "(%a)_(%d%d)", regTrig = true, desc = "subscript 2" },
fmt(
[[
{}_{{{}}}{}
]],
{
f(function(_, snip)
return snip.captures[1]
end),
f(function(_, snip)
return snip.captures[2]
end),
i(0),
}
),
{
condition = math,
show_condition = math,
}
)
table.insert(autosnippets, subcsript2)
local frac = s(
{ trig = "//", desc = "Fraction with no input" },
fmt(
@@ -1124,6 +1352,81 @@ local setbuilder = s(
)
table.insert(autosnippets, setbuilder)
local NN = s(
{ trig = "NN", regTrig = true, desc = "Natural Number" },
fmt(
[[
\mathbb{{N}}
]],
{}
),
{
condition = math,
show_condition = math,
}
)
table.insert(autosnippets, NN)
local RN = s(
{ trig = "RN", regTrig = true, desc = "Real Number" },
fmt(
[[
\mathbb{{R}}
]],
{}
),
{
condition = math,
show_condition = math,
}
)
table.insert(autosnippets, RN)
local QN = s(
{ trig = "QN", regTrig = true, desc = "Rational Number" },
fmt(
[[
\mathbb{{Q}}
]],
{}
),
{
condition = math,
show_condition = math,
}
)
table.insert(autosnippets, QN)
local CN = s(
{ trig = "CN", regTrig = true, desc = "Komplex Number" },
fmt(
[[
\mathbb{{C}}
]],
{}
),
{
condition = math,
show_condition = math,
}
)
table.insert(autosnippets, CN)
local polynomial = s(
{ trig = "poly", desc = "Polynomial" },
fmt(
[[
\wp
]],
{}
),
{
condition = math,
show_condition = math,
}
)
table.insert(autosnippets, polynomial)
-- Greek Letters --
local degree = s(
@@ -1307,7 +1610,7 @@ local Omega = s(
table.insert(autosnippets, Omega)
local alpha = s(
{ trig = "aloha", desc = "alpha" },
{ trig = "alpha", desc = "alpha" },
fmt(
[[
\alpha