Skip to content

Commit 75bf25e

Browse files
committed
Format with stylua
1 parent 07a7491 commit 75bf25e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lua/luasnip/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,9 @@ local function get_id_snippet(id)
730730
end
731731

732732
local function add_snippets(ft, snippets, opts)
733-
util.validate("filetype", ft, {"string", "nil"})
734-
util.validate("snippets", snippets, {"table"})
735-
util.validate("opts", opts, {"table", "nil"})
733+
util.validate("filetype", ft, { "string", "nil" })
734+
util.validate("snippets", snippets, { "table" })
735+
util.validate("opts", opts, { "table", "nil" })
736736

737737
opts = opts or {}
738738
opts.refresh_notify = opts.refresh_notify or true

lua/luasnip/loaders/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local snippet_collection = require("luasnip.session.snippet_collection")
55
local log = require("luasnip.util.log").new("loaders")
66

77
local function filetypelist_to_set(list)
8-
util.validate("list", list, {"table"}, true)
8+
util.validate("list", list, { "table" }, true)
99

1010
if not list then
1111
return list

lua/luasnip/util/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ local function validate(name, value, validator, optional)
273273
if vimversion.ge(0, 11, 0) then
274274
return vim.validate(name, value, validator, optional)
275275
else
276-
return vim.validate({name = {value, validator, optional}})
276+
return vim.validate({ name = { value, validator, optional } })
277277
end
278278
end
279279

0 commit comments

Comments
 (0)