chore: use stylua for formatting (#1040)
* chore: stylua job and config * reformat with stylua
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
local log = require('telescope.log')
|
||||
local Job = require('plenary.job')
|
||||
local log = require "telescope.log"
|
||||
local Job = require "plenary.job"
|
||||
|
||||
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 entry_maker = opts.entry_maker or make_entry.gen_from_string()
|
||||
@@ -31,12 +31,14 @@ return function(opts)
|
||||
__call = void(async(function(prompt, process_result, process_complete)
|
||||
print("are we callin anything?", job)
|
||||
if job and not job.is_shutdown then
|
||||
log.debug("Shutting down old job")
|
||||
log.debug "Shutting down old job"
|
||||
job:shutdown()
|
||||
end
|
||||
|
||||
local job_opts = fn_command(prompt)
|
||||
if not job_opts then return end
|
||||
if not job_opts then
|
||||
return
|
||||
end
|
||||
|
||||
local writer = nil
|
||||
if job_opts.writer and Job.is_job(job_opts.writer) then
|
||||
|
||||
Reference in New Issue
Block a user