chore: use stylua for formatting (#1040)

* chore: stylua job and config

* reformat with stylua
This commit is contained in:
Simon Hauser
2021-07-23 17:42:37 +02:00
committed by GitHub
parent 664690029f
commit 79644ab677
75 changed files with 3201 additions and 2809 deletions

View File

@@ -1,14 +1,17 @@
local async_lib = require('plenary.async_lib')
local async_lib = require "plenary.async_lib"
local async = async_lib.async
local await = async_lib.await
local void = async_lib.void
local make_entry = require('telescope.make_entry')
local make_entry = require "telescope.make_entry"
return function(opts)
local input_results
if vim.tbl_islist(opts) then input_results = opts
else input_results = opts.results end
if vim.tbl_islist(opts) then
input_results = opts
else
input_results = opts.results
end
local entry_maker = opts.entry_maker or make_entry.gen_from_string()
@@ -28,7 +31,9 @@ return function(opts)
}, {
__call = void(async(function(_, _, process_result, process_complete)
for i, v in ipairs(results) do
if process_result(v) then break end
if process_result(v) then
break
end
if i % 1000 == 0 then
await(async_lib.scheduler())