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/vim.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 luasnip_snippets/vim.json (limited to 'luasnip_snippets/vim.json') diff --git a/luasnip_snippets/vim.json b/luasnip_snippets/vim.json new file mode 100644 index 0000000..570bcb5 --- /dev/null +++ b/luasnip_snippets/vim.json @@ -0,0 +1,23 @@ +{ + "gvar": { + "prefix": "gvar", + "description": "Global / configuration variable", + "body": [ + "if !exists(\"g:${1:MyUltraImportantVar}\")", + "\tlet g:$1 = ${2:\"${3:}\"}", + "endif" + ], + "luasnip": { + "priority": -50 + } + }, + "f": { + "prefix": "f", + "description": "function", + "body": [ + "fun ${1:function_name}($2)", + "\t${3:\" code}", + "endf" + ] + } +} -- cgit v1.2.3