diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
| commit | f1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch) | |
| tree | bbe77eacaef8ab8a5999e517c3006973c9e3e44c /luasnip_snippets/mako.json | |
| parent | 823302458ec6c53455a3f34674415c43ce6a3187 (diff) | |
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'luasnip_snippets/mako.json')
| -rw-r--r-- | luasnip_snippets/mako.json | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/luasnip_snippets/mako.json b/luasnip_snippets/mako.json new file mode 100644 index 0000000..fb08ff9 --- /dev/null +++ b/luasnip_snippets/mako.json @@ -0,0 +1,116 @@ +{ + "def": { + "prefix": "def", + "description": "definition", + "body": [ + "<%def name=\"${1:name}\">", + "\t${2:}", + "</%def>" + ], + "luasnip": { + "priority": -50 + } + }, + "call": { + "prefix": "call", + "description": "call", + "body": [ + "<%call expr=\"${1:name}\">", + "\t${2:}", + "</%call>" + ] + }, + "doc": { + "prefix": "doc", + "description": "doc", + "body": [ + "<%doc>", + "\t${1:}", + "</%doc>" + ] + }, + "text": { + "prefix": "text", + "description": "text", + "body": [ + "<%text>", + "\t${1:}", + "</%text>" + ] + }, + "for": { + "prefix": "for", + "description": "for", + "body": [ + "% for ${1:i} in ${2:iter}:", + "\t${3:}", + "% endfor" + ] + }, + "if": { + "prefix": "if", + "description": "if/else", + "body": [ + "% if ${1:condition}:", + "\t${2:}", + "% else:", + "\t${3:}", + "% endif" + ] + }, + "try": { + "prefix": "try", + "description": "try", + "body": [ + "% try:", + "\t${1:}", + "% except${2:}:", + "\t${3:pass}", + "% endtry" + ] + }, + "wh": { + "prefix": "wh", + "description": "wh", + "body": [ + "% while ${1:}:", + "\t${2:}", + "% endwhile" + ] + }, + "$": { + "prefix": "$", + "description": "$", + "body": "\\${${1:}\\}" + }, + "<%": { + "prefix": "<%", + "description": "<%", + "body": "<% ${1:} %>" + }, + "<!%": { + "prefix": "<!%", + "description": "<!%", + "body": "<!% ${1:} %>" + }, + "inherit": { + "prefix": "inherit", + "description": "inherit", + "body": "<%inherit file=\"${1:filename}\" />" + }, + "include": { + "prefix": "include", + "description": "include", + "body": "<%include file=\"${1:filename}\" />" + }, + "namespace": { + "prefix": "namespace", + "description": "namespace", + "body": "<%namespace file=\"${1:name}\" />" + }, + "page": { + "prefix": "page", + "description": "page", + "body": "<%page args=\"${1:}\" />" + } +} |
