Updated Yazi: version, hop plugin, glow preview
This commit is contained in:
23
nvim/lua/snippets/markdown.lua
Normal file
23
nvim/lua/snippets/markdown.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
local ls = require("luasnip")
|
||||
local s = ls.snippet
|
||||
local t = ls.text_node
|
||||
local i = ls.insert_node
|
||||
local f = ls.function_node
|
||||
|
||||
-- Get current date in YYYY-MM-DD format
|
||||
local function date()
|
||||
return os.date("%Y-%m-%d")
|
||||
end
|
||||
|
||||
return {
|
||||
s("env", {
|
||||
t({"---",
|
||||
"title: "}), i(1, "Title"), t({"",
|
||||
"tags: ["}), i(2, "tag1, tag2"), t({"]",
|
||||
"date: "}), f(date, {}), t({"",
|
||||
"---", ""}),
|
||||
i(0),
|
||||
}),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user