feat: Add yazi config

This commit is contained in:
Fabio Lenherr / DashieTM 2023-10-09 17:08:16 +02:00
parent fc6a4dea97
commit 7cacef1705
20 changed files with 505 additions and 808 deletions

View file

@ -18,14 +18,11 @@ local file_pattern = "*.typst"
-- snippers go here:
local colorSnippet = s(
"tx-",
fmt(
[[ #text({1})[{2}] ]],
{
i(1, "color"),
i(2, "text"),
}
)
"tx-",
fmt([[ #text({1})[{2}] ]], {
i(1, "color"),
i(2, "text"),
})
)
table.insert(snippets, colorSnippet)
@ -89,5 +86,41 @@ local codeSnippet = s(
)
)
table.insert(snippets, codeSnippet)
local patternSnippet = s(
"pattern-",
fmt(
[[
#subsection([{1}])
#set text(size: 14pt)
Problem | {2}
Context | {3}
Participants :
- {4}
#set text(size: 11pt)
// images
{5}
#columns(2, [
#text(green)[Benefits]
- {6}
#colbreak()
#text(red)[Liabilities]
- {7}
])
]],
{
i(1, "pattern"),
i(2, "problem"),
i(3, "context"),
i(4, ""),
i(5, ""),
i(6, ""),
i(7, ""),
}
)
)
table.insert(snippets, patternSnippet)
------------------------------------------------- snippets end
return snippets, autosnippets