my first ever personal LuaSnip snippet! So proud :)

This commit is contained in:
Joost Agterhoek 2024-10-09 17:04:04 +02:00
parent 4444cda566
commit a2f9116d30

View File

@ -19,18 +19,19 @@ ls.add_snippets(nil, {
namr = 'Zola blogpost Frontmatter', namr = 'Zola blogpost Frontmatter',
dscr = 'Frontmatter metadata for Zola markdown blogpost', dscr = 'Frontmatter metadata for Zola markdown blogpost',
}, { }, {
text { '---', 'title = ' }, text { '+++', "title = '" },
insert(1, 'note_title'), insert(1, 'note_title'),
text { '', 'author = Joost Agterhoek' }, text { "'" },
text { '', 'date = ' }, text { '', 'date = "' },
func(date, {}), func(date, {}),
text { '"' },
text { '', 'updated = ' }, text { '', 'updated = ' },
func(date, {}), func(date, {}),
text { '', '[taxonomies]' }, text { '', '[taxonomies]' },
text { '', "tags = ['" }, text { '', "tags = ['" },
insert(2, ''), insert(2, ''),
text { "']" }, text { "']" },
text { '', '---', '', '' }, text { '', '+++', '', '' },
insert(0), insert(0),
}), }),
}, },