summaryrefslogtreecommitdiff
path: root/.config/vim/UltiSnips/pug.snippets
diff options
context:
space:
mode:
Diffstat (limited to '.config/vim/UltiSnips/pug.snippets')
-rw-r--r--.config/vim/UltiSnips/pug.snippets26
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/vim/UltiSnips/pug.snippets b/.config/vim/UltiSnips/pug.snippets
new file mode 100644
index 0000000..2e3adb8
--- /dev/null
+++ b/.config/vim/UltiSnips/pug.snippets
@@ -0,0 +1,26 @@
+snippet debug "Debug" b
+pre !{JSON.stringify(${1}, null, '\t')}
+endsnippet
+
+snippet dump "Debug" b
+pre !{JSON.stringify(${1}, null, '\t')}
+endsnippet
+
+snippet each "Each" b
+if ${1:objects}.length
+ each $2, i in $1
+ $3
+endsnippet
+
+snippet inc "Includes" b
+include ../includes/$1
+endsnippet
+
+snippet ex "extends" b
+extends ../layouts/${1:base}
+endsnippet
+
+snippet bl "Block" b
+block ${1:content}
+ $2
+endsnippet