Updated Yazi: version, hop plugin, glow preview

This commit is contained in:
Thomas Naderer
2025-05-30 23:30:44 +02:00
parent b3cb8b7fdf
commit 85ef8dca72
11 changed files with 324 additions and 87 deletions

80
nvim/lua/snippets/tex.lua Normal file
View File

@@ -0,0 +1,80 @@
local ls = require("luasnip")
local s = ls.snippet
local t = ls.text_node
local i = ls.insert_node
local f = ls.function_node
return {
s("psb", {
-- Header + packages
t({
"\\documentclass[a4paper]{scrartcl}",
"\\usepackage[utf8]{inputenc}",
"\\usepackage[ngerman]{babel}",
"\\usepackage{graphicx}",
"\\usepackage{tikz}",
"\\usepackage{setspace}",
"\\usepackage{eso-pic}",
"",
"\\title{"}), i(1, "Projektstatusbericht"),
t({"}",
"\\author{"}), i(2, "Thomas Naderer"),
t({"}",
"\\date{"}), f(function() return os.date("%d.%m.%Y") end, {}),
t({
"}",
"",
"% Logo oben links",
"\\AddToShipoutPictureBG*{%",
" \\begin{tikzpicture}[remember picture,overlay]",
" \\node[anchor=north west, yshift=-1cm, xshift=1cm]",
" at (current page.north west) {%",
" \\includegraphics[height=10mm]{../img/ippd_logo.jpg}",
" };",
" \\end{tikzpicture}",
"}",
"",
"\\begin{document}",
"\\maketitle",
""
}),
-- Projekt 1
t({"\\section*{"}), i(3, "Projekt 1 Titel"), t({"}"}),
t({"\\textbf{Momentaner Stand:}", ""}),
i(4, "Kurze Beschreibung..."),
t({"",
"\\begin{itemize}",
" \\item "}), i(5, "Punkt 1"),
t({"",
" \\item "}), i(6, "Punkt 2"),
t({"",
" \\item "}), i(7, "Punkt 3"),
t({
"",
"\\end{itemize}",
"\\hrule",
""
}),
-- Projekt 2
t({"\\section*{"}), i(8, "Projekt 2 Titel"), t({"}"}),
t({"\\textbf{Momentaner Stand:}", ""}),
i(9, "Kurze Beschreibung..."),
t({"",
"\\begin{itemize}",
" \\item "}), i(10, "Punkt 1"),
t({"",
" \\item "}), i(11, "Punkt 2"),
t({"",
" \\item "}), i(12, "Punkt 3"),
t({
"",
"\\end{itemize}",
"\\hrule",
"",
"\\end{document}"
}),
i(0),
}),
}