minor: fix wrong argument order

This commit is contained in:
arne314
2025-08-02 15:10:36 +02:00
parent 60b6073ca6
commit 60bacb22ad

View File

@@ -38,12 +38,15 @@ function M.run_shell_command(cmd, show_output, extra_handler, opts)
end end
end end
if show_output then if show_output then
return vim.fn.jobstart(cmd, vim.tbl_deep_extend({ return vim.fn.jobstart(
on_stdout = function(_, data, _) handle_output(data, false) end, cmd,
on_stderr = function(_, data, _) handle_output(data, true) end, vim.tbl_deep_extend('force', {
stdout_buffered = false, on_stdout = function(_, data, _) handle_output(data, false) end,
stderr_buffered = true, on_stderr = function(_, data, _) handle_output(data, true) end,
}, opts, "force")) stdout_buffered = false,
stderr_buffered = true,
}, opts)
)
else else
return vim.fn.jobstart(cmd, opts) return vim.fn.jobstart(cmd, opts)
end end