dots/.vim/snips/svelte.snippets

20 lines
270 B
Plaintext
Raw Permalink Normal View History

2021-04-11 19:10:12 +02:00
extends html, javascript, css
snippet oM
onMount(() => $0)
endsnippet
snippet oD
onDestroy(() => $0)
endsnippet
2021-04-11 19:13:21 +02:00
snippet preJsf "JSON.stringify (formatted and wrapped)"
<pre>
2021-05-05 15:20:10 +02:00
{JSON.stringify($0, 0, 2)}
2021-04-11 19:13:21 +02:00
</pre>
endsnippet
2021-05-05 15:20:10 +02:00
snippet :g "Open :global("
:global(
endsnippet