my first ever personal LuaSnip snippet! So proud :)
This commit is contained in:
parent
4444cda566
commit
a2f9116d30
|
@ -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),
|
||||
}),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user