feat: add custom shell command config (#1361)

This commit is contained in:
Peter Cardenas
2025-02-23 05:55:37 -08:00
committed by GitHub
parent e47c27af66
commit 3dd1854cd4
4 changed files with 11 additions and 3 deletions

View File

@@ -290,7 +290,7 @@ function M.run_command(opts, on_log)
---change cwd to abs_path
local old_cwd = vim.fn.getcwd()
vim.fn.chdir(abs_path)
local res = Utils.shell_run(opts.command)
local res = Utils.shell_run(opts.command, Config.run_command.shell_cmd)
vim.fn.chdir(old_cwd)
if res.code ~= 0 then
if res.stdout then return false, "Error: " .. res.stdout .. "; Error code: " .. tostring(res.code) end