ci: format
This commit is contained in:
parent
96df25b7be
commit
e03f51ca04
1 changed files with 23 additions and 19 deletions
|
|
@ -208,7 +208,10 @@ function M.compile(bufnr, name, provider, ctx, opts)
|
||||||
local watcher = vim.uv.new_fs_event()
|
local watcher = vim.uv.new_fs_event()
|
||||||
if watcher then
|
if watcher then
|
||||||
open_watchers[bufnr] = watcher
|
open_watchers[bufnr] = watcher
|
||||||
watcher:start(out_dir, {}, vim.schedule_wrap(function(err, filename, _events)
|
watcher:start(
|
||||||
|
out_dir,
|
||||||
|
{},
|
||||||
|
vim.schedule_wrap(function(err, filename, _events)
|
||||||
if err or vim.fn.fnamemodify(filename or '', ':t') ~= out_name then
|
if err or vim.fn.fnamemodify(filename or '', ':t') ~= out_name then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -227,7 +230,8 @@ function M.compile(bufnr, name, provider, ctx, opts)
|
||||||
stop_open_watcher(bufnr)
|
stop_open_watcher(bufnr)
|
||||||
do_open(bufnr, output_file, provider.open)
|
do_open(bufnr, output_file, provider.open)
|
||||||
opened[bufnr] = true
|
opened[bufnr] = true
|
||||||
end))
|
end)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue