2022-01-09 22:48:32 +00:00
|
|
|
local fmt = require("luasnip.extras.fmt").fmt
|
2022-01-12 09:19:35 +00:00
|
|
|
local ls = require "luasnip"
|
2022-01-09 01:08:48 +00:00
|
|
|
|
2022-01-12 09:19:35 +00:00
|
|
|
local i = ls.insert_node
|
2022-01-09 01:08:48 +00:00
|
|
|
|
2022-01-12 09:19:35 +00:00
|
|
|
local M = {
|
|
|
|
frontmatter = fmt(
|
|
|
|
[[
|
|
|
|
---
|
|
|
|
title: {}
|
|
|
|
---
|
|
|
|
{}
|
|
|
|
]],
|
|
|
|
{ i(1), i(0) }
|
2022-01-09 22:48:32 +00:00
|
|
|
),
|
2023-03-22 22:22:08 +00:00
|
|
|
|
|
|
|
link = fmt([[[{}]({}){} ]], { i(1), i(2), i(0) }),
|
2022-01-09 01:08:48 +00:00
|
|
|
}
|
2022-01-12 09:19:35 +00:00
|
|
|
|
|
|
|
return M
|