fix(compiler): open quickfix in background, retain focus on source buffer

This commit is contained in:
Barrett Ruth 2026-03-04 16:36:44 -05:00
parent 2edeef478d
commit f8e2d1d089
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -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