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',
dscr = 'Frontmatter metadata for Zola markdown blogpost',
}, {
text { '---', 'title = ' },
text { '+++', "title = '" },
insert(1, 'note_title'),
text { '', 'author = Joost Agterhoek' },
text { '', 'date = ' },
text { "'" },
text { '', 'date = "' },
func(date, {}),
text { '"' },
text { '', 'updated = ' },
func(date, {}),
text { '', '[taxonomies]' },
text { '', "tags = ['" },
insert(2, ''),
text { "']" },
text { '', '---', '', '' },
text { '', '+++', '', '' },
insert(0),
}),
},