From bb29976e383d9e305e92d9fc4977471535ed70f5 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 12 Nov 2021 20:53:16 +0300 Subject: nvim: expand spotlight snippet from clipboard --- .config/nvim/my_snippets/vimwiki.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/nvim/my_snippets') diff --git a/.config/nvim/my_snippets/vimwiki.snippets b/.config/nvim/my_snippets/vimwiki.snippets index c13b886..21c1b22 100644 --- a/.config/nvim/my_snippets/vimwiki.snippets +++ b/.config/nvim/my_snippets/vimwiki.snippets @@ -9,5 +9,5 @@ $\mathcal{O}(n)$ endsnippet snippet s "Create a new spotlight item" b -- (`!v strftime("%F %R")`) ${1:URL} -- ${2:Summary} +- (`!v strftime("%F %R")`) ${1:`!v substitute(@+, ' \|\n', '', 'g' )`} -- ${2:Summary} endsnippet -- cgit v1.2.3-70-g09d2