diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-10-26 00:00:35 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-10-26 00:00:35 +0200 |
| commit | 7f30d31c9142bbeb10a21b4de9f58bc6d3a0a3f1 (patch) | |
| tree | 33fb7e88cc52a7b44994cdaedf3e85b18feee753 /snippets | |
| parent | 463a9cef8349bbfd2ebf77f60a6a82799271021a (diff) | |
| download | dotfiles-7f30d31c9142bbeb10a21b4de9f58bc6d3a0a3f1.tar.gz dotfiles-7f30d31c9142bbeb10a21b4de9f58bc6d3a0a3f1.zip | |
Removed unnecessary files
Diffstat (limited to 'snippets')
| -rw-r--r-- | snippets/lua.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/snippets/lua.lua b/snippets/lua.lua index 00ccd31..eb46b67 100644 --- a/snippets/lua.lua +++ b/snippets/lua.lua @@ -228,7 +228,14 @@ table.insert(snippets, mySecondSnippet) local myFirstAutoSnippet = s("automatic", { t("This was auto triggered") }) table.insert(autosnippets, myFirstAutoSnippet) -local mySecondAutoSnippet = s({ trig = "normal", regTrig = true }, { t("This was auto triggered") }) +local mySecondAutoSnippet = s({ trig = "digit(%d)(%d)", regTrig = true }, { + f(function(_, snip) + return snip.captures[1] .. " + " + end), + f(function(_, snip) + return snip.captures[2] + end), +}) table.insert(autosnippets, mySecondAutoSnippet) |
