summaryrefslogtreecommitdiff
path: root/luasnip_snippets/vim.json
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
commitf1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch)
treebbe77eacaef8ab8a5999e517c3006973c9e3e44c /luasnip_snippets/vim.json
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/vim.json')
-rw-r--r--luasnip_snippets/vim.json23
1 files changed, 23 insertions, 0 deletions
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:<tab>}\"}",
+ "endif"
+ ],
+ "luasnip": {
+ "priority": -50
+ }
+ },
+ "f": {
+ "prefix": "f",
+ "description": "function",
+ "body": [
+ "fun ${1:function_name}($2)",
+ "\t${3:\" code}",
+ "endf"
+ ]
+ }
+}