Compare commits

...

2 Commits

Author SHA1 Message Date
Yannick Reiß 04f7b17fd5 Change XML tag trigger to auto trigger
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 20s Details
2024-09-15 21:09:33 +02:00
Yannick Reiß c3f37295e6 Failing self containing hello world snippet 2024-09-15 21:07:11 +02:00
2 changed files with 7 additions and 1 deletions

View File

@ -4,3 +4,9 @@ $4
`!p snip.rv = "endsnippet"` `!p snip.rv = "endsnippet"`
$0 $0
endsnippet endsnippet
snippet helloworld "A simple hello world snippet" b
${0:`!p
if not snip.c:
snip.rv = f'snippet helloworld "A simple hello world snippet" b\n{t[0]}\nendsnippet'`}
endsnippet

View File

@ -1,4 +1,4 @@
snippet tg "automated tag insertion" b snippet << "automated tag insertion" A
<${1:tag}> <${1:tag}>
$2 $2
</${1/(\w+).*/$1/}>$0 </${1/(\w+).*/$1/}>$0