Skip to content

Commit

Permalink
Merge pull request #126 from barrett-ruth/windows-exepath
Browse files Browse the repository at this point in the history
fix(#111): resolve windows executable paths
  • Loading branch information
barrett-ruth authored Jan 11, 2024
2 parents 394317c + 07a6a4e commit 80f0994
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/guard/spawn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ local function spawn(opt)
end)
end

handle = uv.spawn(opt.cmd, {
local cmd = vim.fn.exepath(opt.cmd)
handle = uv.spawn(cmd, {
stdio = { stdin, stdout, stderr },
args = opt.args,
cwd = opt.cwd,
Expand Down

0 comments on commit 80f0994

Please sign in to comment.