Update snippets

This commit is contained in:
a.shalimov 2026-09-29 10:47:53 +03:00
parent 2595c635b7
commit 241eca5bb0
3 changed files with 9 additions and 23 deletions

View file

@ -18,9 +18,9 @@ ls.add_snippets("all", {
}),
s({ trig = "csection", dscr = "# centered section header #" }, {
t "#",
f(util.pad_left(100, 1), { 1 }),
f(util.pad_left(80, 1), { 1 }),
i(1, "Some topic"),
f(util.pad_right(100, 1), { 1 }),
f(util.pad_right(80, 1), { 1 }),
t "#",
t { "", "" },
i(0),

View file

@ -50,7 +50,7 @@ ls.add_snippets(
s({ trig = "iq", dscr = "Insert question" },
fmt(
[[
┏━━━━━━━━━━━━━━ Question ✗ ━━━━━━━━━━━━━━━
┏━━━━━━━━━━━━━━ Question 0 ━━━━━━━━━━━━━━━
**Question**
{}
@ -66,7 +66,7 @@ ls.add_snippets(
s({ trig = "ip", dscr = "Insert problem" },
fmt(
[[
┏━━━━━━━━━━━━━━ Problem ✗ ━━━━━━━━━━━━━━━
┏━━━━━━━━━━━━━━ Problem 0 ━━━━━━━━━━━━━━━
**Problem**:
{}
@ -84,7 +84,7 @@ ls.add_snippets(
fmt(
[[
┏━━━━━━━━━━ Замтеки на полях ━━━━━━━━━━━
**Тема**: {}
**Theme**: {}
{}
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
]],
@ -94,19 +94,5 @@ ls.add_snippets(
}
)
),
s({ trig = "ip", dscr = "Insert side notes" },
fmt(
[[
┏━━━━━━━━━━━━━━ Проблема ━━━━━━━━━━━━━━━
- [ ] **Решена**
{}
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
]],
{
i(0),
}
)
)
}
)

View file

@ -99,13 +99,13 @@ ls.add_snippets("python", {
)
),
s({ trig = "pysection", dscr = "Section header" }, {
t { string.rep("#", 100), "" },
t { string.rep("#", 80), "" },
t "#",
f(util.pad_left(100, 1), { 1 }),
f(util.pad_left(80, 1), { 1 }),
i(1, "Section topic"),
f(util.pad_right(100, 1), { 1 }),
f(util.pad_right(80, 1), { 1 }),
t "#",
t { "", string.rep("#", 100), "" },
t { "", string.rep("#", 80), "" },
i(0),
}),
})