From a4c31cf757ee7b7b97a823e4198f82eec3d8a9df Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 12 Nov 2021 21:49:09 +0300 Subject: nvim: fix spotlight snippet also steal stuff during fixing --- .config/nvim/my_snippets/vimwiki.snippets | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to '.config/nvim/my_snippets/vimwiki.snippets') diff --git a/.config/nvim/my_snippets/vimwiki.snippets b/.config/nvim/my_snippets/vimwiki.snippets index 21c1b22..daf93f7 100644 --- a/.config/nvim/my_snippets/vimwiki.snippets +++ b/.config/nvim/my_snippets/vimwiki.snippets @@ -9,5 +9,21 @@ $\mathcal{O}(n)$ endsnippet snippet s "Create a new spotlight item" b -- (`!v strftime("%F %R")`) ${1:`!v substitute(@+, ' \|\n', '', 'g' )`} -- ${2:Summary} +- (`!v strftime("%F %R")`) `xsel -ob` -- ${1:Summary} +endsnippet + +snippet '- s' "Create a new spotlight item" w +- (`!v strftime("%F %R")`) `xsel -ob` -- ${1:Summary} +endsnippet + +snippet "h([1-6])" "Headings" rbA +`!p snip.rv = '=' * int(match.group(1)) ` ${1:${VISUAL}} `!p snip.rv = '=' * int(match.group(1))` +$0 +endsnippet + +snippet mcd "multi-line code" bA +{{{ $1 +${2:${VISUAL}} +}}} +$0 endsnippet -- cgit v1.2.3-70-g09d2