From f1eabbaa1b4ff1836d0ee8335b31d009203f3775 Mon Sep 17 00:00:00 2001 From: "Vito G. Graffagnino" Date: Tue, 30 Aug 2022 16:06:22 +0100 Subject: fixed zathura integration with texlab using nvim-texlabconfig --- luasnip_snippets/r.json | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 luasnip_snippets/r.json (limited to 'luasnip_snippets/r.json') diff --git a/luasnip_snippets/r.json b/luasnip_snippets/r.json new file mode 100644 index 0000000..9514078 --- /dev/null +++ b/luasnip_snippets/r.json @@ -0,0 +1,57 @@ +{ + "#!": { + "prefix": "#!", + "description": "#!/usr/bin/env Rscript", + "body": [ + "#!/usr/bin/env Rscript", + "$0" + ], + "luasnip": { + "priority": -20 + } + }, + "df": { + "prefix": "df", + "description": "Data frame", + "body": "${1:name}[${2:rows}, ${0:cols}]" + }, + "fis": { + "prefix": "fis", + "description": "Fisher test", + "body": "fisher.test(${1:x}, ${0:y})" + }, + "chi": { + "prefix": "chi", + "description": "Chi Squared test", + "body": "chisq.test(${1:x}, ${0:y})" + }, + "tt": { + "prefix": "tt", + "description": "t-test", + "body": "t.test(${1:x}, ${0:y})" + }, + "wil": { + "prefix": "wil", + "description": "Wilcox test", + "body": "wilcox.test(${1:x}, ${0:y})" + }, + "cor": { + "prefix": "cor", + "description": "Correlation test", + "body": "cor.test(${1:x}, ${0:y})" + }, + "fte": { + "prefix": "fte", + "description": "FTE test", + "body": "var.test(${1:x}, ${0:y})" + }, + "kvt": { + "prefix": "kvt", + "description": "KV test", + "body": "kv.test(${1:x}, ${0:y})" + }, + "vec": { + "prefix": "vec", + "body": "${1:var} <- c(\"${0:\\${VISUAL:/ /\",\"/g\\}}\")" + } +} -- cgit v1.2.3