summaryrefslogtreecommitdiffstats
path: root/.config/nvim/my_snippets/all.snippets
diff options
context:
space:
mode:
authorYigit Sever2021-11-19 18:29:35 +0300
committerYigit Sever2021-11-19 18:29:35 +0300
commit6093c9230bddceb7d3698edc5c476651129113f3 (patch)
tree5e92f75a40a3d3e408a03475c94aae45e9fe9f34 /.config/nvim/my_snippets/all.snippets
parent95dc5ae052b18a9b00afd131d1d921a7767c6e09 (diff)
downloaddotfiles-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.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