Automatically apply skeleton snippets to certain filetypes if configured
This commit is contained in:
14
.config/nvim/snippets/vimwiki.snippets
Normal file
14
.config/nvim/snippets/vimwiki.snippets
Normal file
@@ -0,0 +1,14 @@
|
||||
snippet _skeleton Create initial diary entry
|
||||
= `strftime("%-d. %b")`: ${1:summary} =
|
||||
%% `strftime("%Y-%m-%d")`
|
||||
|
||||
${0}
|
||||
|
||||
snippet xdia Create initial diary entry
|
||||
= `strftime("%-d. %b")`: ${1:summary} (xdia) =
|
||||
%% `strftime("%Y-%m-%d")`
|
||||
|
||||
${0}
|
||||
|
||||
snippet xtodo Create a new todo
|
||||
* [ ] ${0}
|
||||
@@ -1,10 +1,10 @@
|
||||
snippet xscript Create initial skeleton
|
||||
snippet _skeleton Create initial skeleton
|
||||
<script setup lang="ts">
|
||||
${1}
|
||||
${0}${1}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
${2:<div>$3</div>}
|
||||
<${2:div}>$3</$2>
|
||||
</template>
|
||||
|
||||
snippet xpagemeta Add page meta
|
||||
|
||||
Reference in New Issue
Block a user