Doxygen for lua function snippet
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 42s Details

This commit is contained in:
Yannick Reiß 2024-09-14 11:36:33 +02:00
parent f0b346271c
commit 546cc3e437
1 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,13 @@
snippet fun "New function" snippet fun "New function"
function ${1:Name} ($2) -- @name $1
$3 `!p
param = ""
for i in t[2].split(","):
param += f"-- @param {i.replace(' ', '')}\n"
snip.rv = param
`-- @short ${3:Description}
function ${1:Name} (${2:})
$4
end; end;
$0 $0
endsnippet endsnippet