all repos

init.lua @ 40a3cc531ea3f669d81e45d2321e17f2ab69aeae

my nvim config
2 files changed, 21 insertions(+), 0 deletions(-)
feat(luasnip): add module snippet for lua
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2022-12-23 13:56:29 +0200
Parent: e8875d6
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 = "<>" } + ) + ), +}