diff options
author | Yigit Sever | 2021-11-19 18:29:35 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-19 18:29:35 +0300 |
commit | 6093c9230bddceb7d3698edc5c476651129113f3 (patch) | |
tree | 5e92f75a40a3d3e408a03475c94aae45e9fe9f34 /.config/nvim/my_snippets/all.snippets | |
parent | 95dc5ae052b18a9b00afd131d1d921a7767c6e09 (diff) | |
download | dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.tar.gz dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.tar.bz2 dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.zip |
no time sorry!
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 | ||