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
---@paramcondtable|function A function, or a condition object (see `CONDITION OBJECTS` in `:h luasnip-extras-conditions`).
92
94
---@paramsnippets (SnippetTuple|SnippetTuple[])[]
93
95
---@returnSnippetTuple[] # The snippets that respects the condition
94
-
localfunctionconditional_by(cond, snippets)
96
+
functionluasnippy.conditional_by(cond, snippets)
95
97
iftype(cond) =="function" then
96
98
cond=conditions.make_condition(cond)
97
99
elseiftype(cond) ~="table" then
@@ -115,7 +117,7 @@ end
115
117
---Accepts a list of LuaSnippy snippets and converts them to LuaSnip snippets, for use in snippet file `return` (see `:h luasnip-loaders-lua`) or `luasnip.add_snippets` (see `:h luasnip-api`).
0 commit comments