2 files changed,
21 insertions(+),
0 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2022-12-23 13:56:29 +0200
Parent:
e8875d6
jump to
| M | lua/configs/luasnip.lua |
| A | luasnippets/lua.lua |
M
lua/configs/luasnip.lua
@@ -11,6 +11,7 @@ region_check_events = "CursorMoved,CursorHold,InsertEnter",
delete_check_events = "InsertLeave", snip_env = { fmt = fmt, + rep = extras.rep, m = extras.match, l = extras.lamda, s = ls.snippet,
A
luasnippets/lua.lua
@@ -0,0 +1,20 @@
+---@diagnostic disable: undefined-global +-- selene: allow(undefined_variable) +return { + s( + "M", + fmt( + [[local <> = {} + +<> + +return <>]], + { + i(1, "M"), + i(0), + rep(1), + }, + { delimiters = "<>" } + ) + ), +}