From a21f762076355b5fcc74e36c5e3a1fc583f71510 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 18 Nov 2021 23:02:16 +0300 Subject: nvim: tracking md and box snippets --- .config/nvim/my_snippets/all.snippets | 6 ++++++ .config/nvim/my_snippets/markdown.snippets | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 .config/nvim/my_snippets/all.snippets create mode 100644 .config/nvim/my_snippets/markdown.snippets (limited to '.config/nvim/my_snippets') diff --git a/.config/nvim/my_snippets/all.snippets b/.config/nvim/my_snippets/all.snippets new file mode 100644 index 0000000..e6f932c --- /dev/null +++ b/.config/nvim/my_snippets/all.snippets @@ -0,0 +1,6 @@ +snippet box "Box" +`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'` +│ $1 │ +`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'` +$0 +endsnippet diff --git a/.config/nvim/my_snippets/markdown.snippets b/.config/nvim/my_snippets/markdown.snippets new file mode 100644 index 0000000..e567ce6 --- /dev/null +++ b/.config/nvim/my_snippets/markdown.snippets @@ -0,0 +1,3 @@ +snippet link "hyperlink" w +[${1:text}](`xsel -ob`) +endsnippet -- cgit v1.2.3-70-g09d2