nvim: Add todo snippets to markdown

Taken from djot snippets to allow adding a single task and multiple
tasks.
This commit is contained in:
Marty Oehme 2025-07-16 16:53:07 +02:00
parent 6ceedae571
commit aade4456e3
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -23,5 +23,15 @@
"prefix": "blogfront", "prefix": "blogfront",
"body": ["---", "title: ${1:title}", "description: ${2: desc}", "pubDate: ${3:date}", "tags: ${4:tags}", "${0}", "---"], "body": ["---", "title: ${1:title}", "description: ${2: desc}", "pubDate: ${3:date}", "tags: ${4:tags}", "${0}", "---"],
"description": "add frontmatter" "description": "add frontmatter"
},
"Insert todo item": {
"prefix": "todo",
"body": ["- [ ] ${1:first}", "$0"],
"description": "Insert a single todo list item"
},
"Insert todo list": {
"prefix": "todo list",
"body": ["- [ ] ${1:first}", "- [ ] ${2:second}", "- [ ] ${3:third}", "$0"],
"description": "Insert multiple todo list items"
} }
} }