From a2f9116d30817fd1dc435d4d2eefb7f320125dec Mon Sep 17 00:00:00 2001 From: Joost Agterhoek Date: Wed, 9 Oct 2024 17:04:04 +0200 Subject: [PATCH] my first ever personal LuaSnip snippet! So proud :) --- lua/snippets.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/snippets.lua b/lua/snippets.lua index b8eae9a..19645d0 100644 --- a/lua/snippets.lua +++ b/lua/snippets.lua @@ -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), }), },