Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format with stylua
  • Loading branch information
bew authored and github-actions[bot] committed Nov 8, 2025
commit 281fdee636f61b4cba7ee693243d1c707bcb6c05
16 changes: 8 additions & 8 deletions lua/luasnip/util/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -484,14 +484,14 @@ end
---@param needle any Value to compare
---@return boolean _ `true` if `t` contains `needle`
local function list_contains(t, needle)
vim.validate('t', t, 'table')

for _, v in ipairs(t) do
if v == needle then
return true
end
end
return false
vim.validate("t", t, "table")

for _, v in ipairs(t) do
if v == needle then
return true
end
end
return false
end

return {
Expand Down