You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
delete name (because you're making an anonymous function)
trigger UltiSnipsJumpForwardTrigger (to jump to args)
snippet expands again because it matches "function"
Workaround:
clearsnippets !fun(ction)?!
snippet fun "New function" b
function ${1:new_function}(${2:args})
$0
end
endsnippet
(Should work, but I only use the clearsnippets part. I have a significantly more involved snippet that tries to be smart and get a relevant table/class.)
Fixing this requires changing the snippet expand trigger. Maybe adding my smarter version makes that a worthwhile tradeoff?
The text was updated successfully, but these errors were encountered:
vim-snippets/UltiSnips/lua.snippets
Line 20 in b47c2e3
fun
Workaround:
(Should work, but I only use the clearsnippets part. I have a significantly more involved snippet that tries to be smart and get a relevant table/class.)
Fixing this requires changing the snippet expand trigger. Maybe adding my smarter version makes that a worthwhile tradeoff?
The text was updated successfully, but these errors were encountered: