Skip to content

Commit

Permalink
Format with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 authored and github-actions[bot] committed Dec 2, 2023
1 parent c6e964b commit 2a75f4a
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 26 deletions.
100 changes: 75 additions & 25 deletions lua/luasnip/default_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,81 @@ local function modify_nodes(snip)
end

local lazy_snip_env = {
s = function() return require("luasnip.nodes.snippet").S end,
sn = function() return require("luasnip.nodes.snippet").SN end,
isn = function() return require("luasnip.nodes.snippet").ISN end,
t = function() return require("luasnip.nodes.textNode").T end,
i = function() return require("luasnip.nodes.insertNode").I end,
f = function() return require("luasnip.nodes.functionNode").F end,
c = function() return require("luasnip.nodes.choiceNode").C end,
d = function() return require("luasnip.nodes.dynamicNode").D end,
r = function() return require("luasnip.nodes.restoreNode").R end,
events = function() return require("luasnip.util.events") end,
ai = function() return require("luasnip.nodes.absolute_indexer") end,
extras = function() return require("luasnip.extras") end,
l = function() return require("luasnip.extras").lambda end,
rep = function() return require("luasnip.extras").rep end,
p = function() return require("luasnip.extras").partial end,
m = function() return require("luasnip.extras").match end,
n = function() return require("luasnip.extras").nonempty end,
dl = function() return require("luasnip.extras").dynamic_lambda end,
fmt = function() return require("luasnip.extras.fmt").fmt end,
fmta = function() return require("luasnip.extras.fmt").fmta end,
conds = function() return require("luasnip.extras.expand_conditions") end,
postfix = function() return require("luasnip.extras.postfix").postfix end,
types = function() return require("luasnip.util.types") end,
parse = function() return require("luasnip.util.parser").parse_snippet end,
ms = function() return require("luasnip.nodes.multiSnippet").new_multisnippet end,
s = function()
return require("luasnip.nodes.snippet").S
end,
sn = function()
return require("luasnip.nodes.snippet").SN
end,
isn = function()
return require("luasnip.nodes.snippet").ISN
end,
t = function()
return require("luasnip.nodes.textNode").T
end,
i = function()
return require("luasnip.nodes.insertNode").I
end,
f = function()
return require("luasnip.nodes.functionNode").F
end,
c = function()
return require("luasnip.nodes.choiceNode").C
end,
d = function()
return require("luasnip.nodes.dynamicNode").D
end,
r = function()
return require("luasnip.nodes.restoreNode").R
end,
events = function()
return require("luasnip.util.events")
end,
ai = function()
return require("luasnip.nodes.absolute_indexer")
end,
extras = function()
return require("luasnip.extras")
end,
l = function()
return require("luasnip.extras").lambda
end,
rep = function()
return require("luasnip.extras").rep
end,
p = function()
return require("luasnip.extras").partial
end,
m = function()
return require("luasnip.extras").match
end,
n = function()
return require("luasnip.extras").nonempty
end,
dl = function()
return require("luasnip.extras").dynamic_lambda
end,
fmt = function()
return require("luasnip.extras.fmt").fmt
end,
fmta = function()
return require("luasnip.extras.fmt").fmta
end,
conds = function()
return require("luasnip.extras.expand_conditions")
end,
postfix = function()
return require("luasnip.extras.postfix").postfix
end,
types = function()
return require("luasnip.util.types")
end,
parse = function()
return require("luasnip.util.parser").parse_snippet
end,
ms = function()
return require("luasnip.nodes.multiSnippet").new_multisnippet
end,
}

-- stylua: ignore
Expand Down
1 change: 0 additions & 1 deletion lua/luasnip/util/lazy_table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ return function(lazy_t, lazy_defs)
end,
})
end

0 comments on commit 2a75f4a

Please sign in to comment.