From 898a5434d0dee6c864971040feedadd684599517 Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Sat, 31 Jan 2026 17:57:30 +1100 Subject: [PATCH] quarto setup --- snippets/markdown.json | 12 +++--------- snippets/quarto.json | 12 +++--------- snippets/r.json | 6 ++++++ 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/snippets/markdown.json b/snippets/markdown.json index 51d3f9e..6d6eb35 100644 --- a/snippets/markdown.json +++ b/snippets/markdown.json @@ -1,13 +1,7 @@ { "Chunk": { - "R": { - "prefix": "_r", - "body": [ - "```{r}", - "$1", - "```" - ], - "description": "R code block" - } + "prefix": "_r", + "body": ["```{r}", "$1", "```"], + "description": "R code block" } } diff --git a/snippets/quarto.json b/snippets/quarto.json index 51d3f9e..6d6eb35 100644 --- a/snippets/quarto.json +++ b/snippets/quarto.json @@ -1,13 +1,7 @@ { "Chunk": { - "R": { - "prefix": "_r", - "body": [ - "```{r}", - "$1", - "```" - ], - "description": "R code block" - } + "prefix": "_r", + "body": ["```{r}", "$1", "```"], + "description": "R code block" } } diff --git a/snippets/r.json b/snippets/r.json index e69de29..8e74ed6 100644 --- a/snippets/r.json +++ b/snippets/r.json @@ -0,0 +1,6 @@ +{ + "Function": { + "prefix": "fn", + "body": "$1 <- function($2){\n$0\n}" + } +}