diff --git a/autoload/neosnippet/snippets/liquid.snip b/autoload/neosnippet/snippets/liquid.snip index 87de33a..e0e4c90 100644 --- a/autoload/neosnippet/snippets/liquid.snip +++ b/autoload/neosnippet/snippets/liquid.snip @@ -77,12 +77,18 @@ snippet include options word {% include ${1:#:TARGET} %} -snippet block +snippet output abbr {{ }} alias {{ options word {{ ${1:#:TARGET} }} +snippet filter +abbr {{ | }} +alias {{ +options word + {{ ${1:#:TARGET} | ${2:#:filter} }} + # Jekyll enhancements @@ -105,3 +111,18 @@ snippet post_url options word {% post_url ${1:#:TARGET} %} +snippet gist +options word + {% gist `getreg('+')=='' ? '<\`0\`>' : getreg('+')` %} + +snippet front-matter +abbr layout title category +alias --- +options head + --- + layout: ${1} + title: ${2} + category: ${3} + --- + ${0} +