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}" + } +}