-- Snippets for markdown local ls = require('luasnip') local s = ls.snippet local t = ls.text_node local i = ls.insert_node return { -- Snippet for making yaml frontmatter s({ trig = 'yamlfrontmatter', dscr = 'YAML frontmatter block' }, { t { '---', '' }, t { 'author: "' }, i(1), t { '"', '' }, t { 'title: "' }, i(2), t { '"', '' }, t { 'date: ' }, i(3), t { '', '' }, t { 'description: "' }, i(4), t { '"', '' }, t { 'keywords: [' }, i(5), t { ']', '' }, t { 'lang: "' }, i(6, 'en-gb'), t { '"', '' }, t { '---', '' }, }), }