Update snippets
This commit is contained in:
parent
db60094ef8
commit
b3032b57df
2 changed files with 9 additions and 4 deletions
|
|
@ -10,7 +10,12 @@ ls.add_snippets("all", {
|
||||||
}),
|
}),
|
||||||
s("ict", {
|
s("ict", {
|
||||||
f(function()
|
f(function()
|
||||||
return os.date("%Y-%m-%d %H:%M")
|
return os.date("| %Y-%m-%d %H:%M | ")
|
||||||
|
end)
|
||||||
|
}),
|
||||||
|
s("шсе", {
|
||||||
|
f(function()
|
||||||
|
return os.date("| %Y-%m-%d %H:%M | ")
|
||||||
end)
|
end)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,9 @@ ls.add_snippets("python", {
|
||||||
s({ trig = "logevent", dscr = "Import necessary logging utils" },
|
s({ trig = "logevent", dscr = "Import necessary logging utils" },
|
||||||
fmt(
|
fmt(
|
||||||
[[
|
[[
|
||||||
_log.{}('{}' * 60)
|
logging.{}('{}' * 60)
|
||||||
_log.{}({})
|
logging.{}({})
|
||||||
_log.{}('{}' * 60)
|
logging.{}('{}' * 60)
|
||||||
]],
|
]],
|
||||||
{
|
{
|
||||||
c(1, { t "error", t "warning", t "info" }),
|
c(1, { t "error", t "warning", t "info" }),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue