mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
63 lines
1.6 KiB
JSON
63 lines
1.6 KiB
JSON
|
{
|
||
|
/* Paths */
|
||
|
"Path-elixir": {
|
||
|
"prefix": "lv:elixir",
|
||
|
"body": "{{ elixir('${1:file}') }}",
|
||
|
"description": "(deprecated) elixir path"
|
||
|
},
|
||
|
"Path-mix": {
|
||
|
"prefix": "lv:mix",
|
||
|
"body": "{{ mix('${1:file}') }}",
|
||
|
"description": "mix path"
|
||
|
},
|
||
|
/* Strings */
|
||
|
"String-trans": {
|
||
|
"prefix": "lv:trans",
|
||
|
"body": "{{ trans('$1') }}",
|
||
|
"description": "trans"
|
||
|
},
|
||
|
/* URLs */
|
||
|
"URL-action": {
|
||
|
"prefix": "lv:action",
|
||
|
"body": "{{ action('${1:ControllerName}', [${2:'id'=>1}]) }}",
|
||
|
"description": "URL-action"
|
||
|
},
|
||
|
"URL-secure-asset": {
|
||
|
"prefix": "lv:secure-asset",
|
||
|
"body": "{{ secure_asset('$1', ${2:\\$title}, ${3:\\$attributes=[]}) }}",
|
||
|
"description": "URL-secure-asset"
|
||
|
},
|
||
|
"URL-url": {
|
||
|
"prefix": "lv:url",
|
||
|
"body": "{{ url('${1:url}', [$2]) }}",
|
||
|
"description": "URL-url"
|
||
|
},
|
||
|
"URL-asset": {
|
||
|
"prefix": "lv:asset",
|
||
|
"body": "{{ asset('$1') }}",
|
||
|
"description": "URL-asset"
|
||
|
},
|
||
|
"URL-route": {
|
||
|
"prefix": "lv:route",
|
||
|
"body": "{{ route('${1:routeName}', [${2:'id'=>1}]) }}",
|
||
|
"description": "URL-route"
|
||
|
},
|
||
|
/* Miscellaneous */
|
||
|
"Form-csrf-field": {
|
||
|
"prefix": "lv:csrf-field",
|
||
|
"body": "{{ csrf_field() }}",
|
||
|
"description": "CSRF hidden field"
|
||
|
},
|
||
|
"csrf-token": {
|
||
|
"prefix": "lv:csrf-token",
|
||
|
"body": "{{ csrf_token() }}",
|
||
|
"description": "CSRF token"
|
||
|
},
|
||
|
/* Paginate */
|
||
|
"Paginate-links": {
|
||
|
"prefix": "lv:pagination-links",
|
||
|
"body": "{{ \\$${1:collection}->links() }}",
|
||
|
"description": "pagination links"
|
||
|
}
|
||
|
}
|