fix StyLua command (#190)

* style: fix StyLua glob pattern

* style: fix style with StyLua

run './utils/stylua --config-path stylua.toml --glob 'lua/**/*.lua' -- lua'
This commit is contained in:
hituzi no sippo
2021-09-11 20:18:44 +09:00
committed by GitHub
parent 8fb4ee1075
commit a58712bf16
19 changed files with 56 additions and 71 deletions

View File

@@ -27,11 +27,15 @@ async.throttle = function(fn, timeout)
timer:stop()
local delta = math.max(0, self.timeout - (vim.loop.now() - time))
timer:start(delta, 0, vim.schedule_wrap(function()
time = nil
fn(unpack(args))
end))
end
timer:start(
delta,
0,
vim.schedule_wrap(function()
time = nil
fn(unpack(args))
end)
)
end,
})
end
@@ -52,4 +56,3 @@ async.dedup = function()
end
return async