From 6093c9230bddceb7d3698edc5c476651129113f3 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 19 Nov 2021 18:29:35 +0300 Subject: no time sorry! --- .config/nvim/my_snippets/all.snippets | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '.config/nvim/my_snippets') 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 @@ -snippet box "Box" +# vim:ft=snippets: + +global !p +from vimsnippets import get_comment_format +endglobal + +snippet fancybox "Box" `!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'` │ $1 │ `!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'` $0 endsnippet + +snippet todo "TODO comment" bw +`!p snip.rv=get_comment_format()[0]` TODO: $0 <`!v strftime('%d-%m-%y')`, yigit> `!p snip.rv=get_comment_format()[2]` +endsnippet -- cgit v1.2.3-70-g09d2