mirror of
https://github.com/amix/vimrc
synced 2025-06-17 10:55:00 +08:00
Forgot to check in the rest of the updated plugins :/
This commit is contained in:
@ -2,32 +2,32 @@
|
||||
# https://marketplace.visualstudio.com/items?itemName=killalau.vscode-liquid-snippets
|
||||
|
||||
snippet if
|
||||
{% if ${1:condition} %}
|
||||
{% if $1 %}
|
||||
${0:${VISUAL}}
|
||||
{% endif %}
|
||||
snippet else
|
||||
{% else %}
|
||||
snippet elsif
|
||||
{% elsif ${1:condition} %}
|
||||
{% elsif $1 %}
|
||||
snippet ifelse
|
||||
{% if ${1:condition} %}
|
||||
{% if $1 %}
|
||||
${2}
|
||||
{% else %}
|
||||
${0}
|
||||
{% endif %}
|
||||
snippet unless
|
||||
{% unless ${1:condition} %}
|
||||
{% unless $1 %}
|
||||
${0:${VISUAL}}
|
||||
{% endunless %}
|
||||
snippet case
|
||||
{% case ${1:variable} %}
|
||||
{% when ${2:condition} %}
|
||||
{% when $2 %}
|
||||
${3}
|
||||
{% else %}
|
||||
${0}
|
||||
{% endcase %}
|
||||
snippet when
|
||||
{% when ${1:condition} %}
|
||||
{% when $1 %}
|
||||
${0:${VISUAL}}
|
||||
snippet cycle
|
||||
{% cycle '${1:odd}', '${2:even}' %}
|
||||
@ -102,32 +102,32 @@ snippet javascript
|
||||
snippet comment-
|
||||
{%- comment -%}${0:${VISUAL}}{%- endcomment -%}
|
||||
snippet if-
|
||||
{%- if ${1:condition} -%}
|
||||
{%- if $1 -%}
|
||||
${0:${VISUAL}}
|
||||
{%- endif -%}
|
||||
snippet else-
|
||||
{%- else -%}
|
||||
snippet elsif-
|
||||
{%- elsif ${1:condition} -%}
|
||||
{%- elsif $1 -%}
|
||||
snippet ifelse-
|
||||
{%- if ${1:condition} -%}
|
||||
{%- if $1 -%}
|
||||
${2}
|
||||
{%- else -%}
|
||||
${0}
|
||||
{%- endif -%}
|
||||
snippet unless-
|
||||
{%- unless ${1:condition} -%}
|
||||
{%- unless $1 -%}
|
||||
${0:${VISUAL}}
|
||||
{%- endunless -%}
|
||||
snippet case-
|
||||
{%- case ${1:variable} -%}
|
||||
{%- when ${2:condition} -%}
|
||||
{%- when $2 -%}
|
||||
${3}
|
||||
{%- else -%}
|
||||
${0}
|
||||
{%- endcase -%}
|
||||
snippet when-
|
||||
{%- when ${1:condition} -%}
|
||||
{%- when $1 -%}
|
||||
${0:${VISUAL}}
|
||||
snippet cycle-
|
||||
{%- cycle '${1:odd}', '${2:even}' -%}
|
||||
|
Reference in New Issue
Block a user