From 95dc5ae052b18a9b00afd131d1d921a7767c6e09 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 19 Nov 2021 12:27:10 +0300 Subject: nvim: better md link snippet --- .config/nvim/my_snippets/markdown.snippets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.config/nvim/my_snippets') diff --git a/.config/nvim/my_snippets/markdown.snippets b/.config/nvim/my_snippets/markdown.snippets index e567ce6..3486dd2 100644 --- a/.config/nvim/my_snippets/markdown.snippets +++ b/.config/nvim/my_snippets/markdown.snippets @@ -1,3 +1,5 @@ -snippet link "hyperlink" w -[${1:text}](`xsel -ob`) +# vim:ft=snippets: + +snippet link "Link to something" b +[${1:${VISUAL:Text}}](`xsel -ob`)$0 endsnippet -- cgit v1.2.3-70-g09d2