Compare commits
No commits in common. "c12891f7ea97e79ec2fb8a12bcc035ee3c994bb6" and "a5ebccc292a95ae5406d42561b6825889f34428c" have entirely different histories.
c12891f7ea
...
a5ebccc292
1 changed files with 5 additions and 16 deletions
|
|
@ -91,17 +91,14 @@ function M.compile(bufnr, name, provider, ctx)
|
||||||
table.concat(reload_cmd, ' ')
|
table.concat(reload_cmd, ' ')
|
||||||
)
|
)
|
||||||
|
|
||||||
local obj
|
local obj = vim.system(
|
||||||
obj = vim.system(
|
|
||||||
reload_cmd,
|
reload_cmd,
|
||||||
{
|
{
|
||||||
cwd = cwd,
|
cwd = cwd,
|
||||||
env = provider.env,
|
env = provider.env,
|
||||||
},
|
},
|
||||||
vim.schedule_wrap(function(result)
|
vim.schedule_wrap(function(result)
|
||||||
if active[bufnr] and active[bufnr].obj == obj then
|
|
||||||
active[bufnr] = nil
|
active[bufnr] = nil
|
||||||
end
|
|
||||||
if not vim.api.nvim_buf_is_valid(bufnr) then
|
if not vim.api.nvim_buf_is_valid(bufnr) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -147,12 +144,7 @@ function M.compile(bufnr, name, provider, ctx)
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
if
|
if provider.open and not opened[bufnr] and output_file ~= '' and vim.uv.fs_stat(output_file) then
|
||||||
provider.open
|
|
||||||
and not opened[bufnr]
|
|
||||||
and output_file ~= ''
|
|
||||||
and vim.uv.fs_stat(output_file)
|
|
||||||
then
|
|
||||||
if provider.open == true then
|
if provider.open == true then
|
||||||
vim.ui.open(output_file)
|
vim.ui.open(output_file)
|
||||||
elseif type(provider.open) == 'table' then
|
elseif type(provider.open) == 'table' then
|
||||||
|
|
@ -188,17 +180,14 @@ function M.compile(bufnr, name, provider, ctx)
|
||||||
|
|
||||||
log.dbg('compiling buffer %d with provider "%s": %s', bufnr, name, table.concat(cmd, ' '))
|
log.dbg('compiling buffer %d with provider "%s": %s', bufnr, name, table.concat(cmd, ' '))
|
||||||
|
|
||||||
local obj
|
local obj = vim.system(
|
||||||
obj = vim.system(
|
|
||||||
cmd,
|
cmd,
|
||||||
{
|
{
|
||||||
cwd = cwd,
|
cwd = cwd,
|
||||||
env = provider.env,
|
env = provider.env,
|
||||||
},
|
},
|
||||||
vim.schedule_wrap(function(result)
|
vim.schedule_wrap(function(result)
|
||||||
if active[bufnr] and active[bufnr].obj == obj then
|
|
||||||
active[bufnr] = nil
|
active[bufnr] = nil
|
||||||
end
|
|
||||||
if not vim.api.nvim_buf_is_valid(bufnr) then
|
if not vim.api.nvim_buf_is_valid(bufnr) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue