summaryrefslogtreecommitdiffstats
path: root/.config/nvim/my_snippets
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/my_snippets')
-rw-r--r--.config/nvim/my_snippets/all.snippets12
1 files changed, 11 insertions, 1 deletions
diff --git a/.config/nvim/my_snippets/all.snippets b/.config/nvim/my_snippets/all.snippets
index e6f932c..338d1d7 100644
--- a/.config/nvim/my_snippets/all.snippets
+++ b/.config/nvim/my_snippets/all.snippets
@@ -1,6 +1,16 @@
1snippet box "Box" 1# vim:ft=snippets:
2
3global !p
4from vimsnippets import get_comment_format
5endglobal
6
7snippet fancybox "Box"
2`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'` 8`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'`
3│ $1 │ 9│ $1 │
4`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'` 10`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'`
5$0 11$0
6endsnippet 12endsnippet
13
14snippet todo "TODO comment" bw
15`!p snip.rv=get_comment_format()[0]` TODO: $0 <`!v strftime('%d-%m-%y')`, yigit> `!p snip.rv=get_comment_format()[2]`
16endsnippet