Update snippets
This commit is contained in:
parent
2595c635b7
commit
241eca5bb0
3 changed files with 9 additions and 23 deletions
|
|
@ -18,9 +18,9 @@ ls.add_snippets("all", {
|
||||||
}),
|
}),
|
||||||
s({ trig = "csection", dscr = "# centered section header #" }, {
|
s({ trig = "csection", dscr = "# centered section header #" }, {
|
||||||
t "#",
|
t "#",
|
||||||
f(util.pad_left(100, 1), { 1 }),
|
f(util.pad_left(80, 1), { 1 }),
|
||||||
i(1, "Some topic"),
|
i(1, "Some topic"),
|
||||||
f(util.pad_right(100, 1), { 1 }),
|
f(util.pad_right(80, 1), { 1 }),
|
||||||
t "#",
|
t "#",
|
||||||
t { "", "" },
|
t { "", "" },
|
||||||
i(0),
|
i(0),
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ ls.add_snippets(
|
||||||
s({ trig = "iq", dscr = "Insert question" },
|
s({ trig = "iq", dscr = "Insert question" },
|
||||||
fmt(
|
fmt(
|
||||||
[[
|
[[
|
||||||
┏━━━━━━━━━━━━━━ Question ✗ ━━━━━━━━━━━━━━━
|
┏━━━━━━━━━━━━━━ Question 0 ━━━━━━━━━━━━━━━
|
||||||
**Question**
|
**Question**
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
@ -66,7 +66,7 @@ ls.add_snippets(
|
||||||
s({ trig = "ip", dscr = "Insert problem" },
|
s({ trig = "ip", dscr = "Insert problem" },
|
||||||
fmt(
|
fmt(
|
||||||
[[
|
[[
|
||||||
┏━━━━━━━━━━━━━━ Problem ✗ ━━━━━━━━━━━━━━━
|
┏━━━━━━━━━━━━━━ Problem 0 ━━━━━━━━━━━━━━━
|
||||||
**Problem**:
|
**Problem**:
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ ls.add_snippets(
|
||||||
fmt(
|
fmt(
|
||||||
[[
|
[[
|
||||||
┏━━━━━━━━━━ Замтеки на полях ━━━━━━━━━━━
|
┏━━━━━━━━━━ Замтеки на полях ━━━━━━━━━━━
|
||||||
**Тема**: {}
|
**Theme**: {}
|
||||||
{}
|
{}
|
||||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||||
]],
|
]],
|
||||||
|
|
@ -94,19 +94,5 @@ ls.add_snippets(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
s({ trig = "ip", dscr = "Insert side notes" },
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
┏━━━━━━━━━━━━━━ Проблема ━━━━━━━━━━━━━━━
|
|
||||||
- [ ] **Решена**
|
|
||||||
{}
|
|
||||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(0),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -99,13 +99,13 @@ ls.add_snippets("python", {
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
s({ trig = "pysection", dscr = "Section header" }, {
|
s({ trig = "pysection", dscr = "Section header" }, {
|
||||||
t { string.rep("#", 100), "" },
|
t { string.rep("#", 80), "" },
|
||||||
t "#",
|
t "#",
|
||||||
f(util.pad_left(100, 1), { 1 }),
|
f(util.pad_left(80, 1), { 1 }),
|
||||||
i(1, "Section topic"),
|
i(1, "Section topic"),
|
||||||
f(util.pad_right(100, 1), { 1 }),
|
f(util.pad_right(80, 1), { 1 }),
|
||||||
t "#",
|
t "#",
|
||||||
t { "", string.rep("#", 100), "" },
|
t { "", string.rep("#", 80), "" },
|
||||||
i(0),
|
i(0),
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue