fix(compiler): open quickfix in background, retain focus on source buffer
This commit is contained in:
parent
2edeef478d
commit
f8e2d1d089
1 changed files with 6 additions and 3 deletions
|
|
@ -177,7 +177,8 @@ function M.compile(bufnr, name, provider, ctx, opts)
|
|||
})
|
||||
end
|
||||
vim.fn.setqflist(items, 'r')
|
||||
vim.cmd('copen')
|
||||
vim.cmd.copen()
|
||||
vim.cmd.wincmd('p')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -215,7 +216,8 @@ function M.compile(bufnr, name, provider, ctx, opts)
|
|||
})
|
||||
end
|
||||
vim.fn.setqflist(items, 'r')
|
||||
vim.cmd('copen')
|
||||
vim.cmd.copen()
|
||||
vim.cmd.wincmd('p')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -372,7 +374,8 @@ function M.compile(bufnr, name, provider, ctx, opts)
|
|||
})
|
||||
end
|
||||
vim.fn.setqflist(items, 'r')
|
||||
vim.cmd('copen')
|
||||
vim.cmd.copen()
|
||||
vim.cmd.wincmd('p')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue