diff options
Diffstat (limited to '.config/nvim/my_snippets/all.snippets')
-rw-r--r-- | .config/nvim/my_snippets/all.snippets | 12 |
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 @@ | |||
1 | snippet box "Box" | 1 | # vim:ft=snippets: |
2 | |||
3 | global !p | ||
4 | from vimsnippets import get_comment_format | ||
5 | endglobal | ||
6 | |||
7 | snippet 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 |
6 | endsnippet | 12 | endsnippet |
13 | |||
14 | snippet 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]` | ||
16 | endsnippet | ||