mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(windows): fix invalid powershell separator during install
This commit is contained in:
parent
e6f9a4b7c3
commit
677dd11c6a
1 changed files with 5 additions and 1 deletions
|
|
@ -318,7 +318,11 @@ end
|
|||
---@return string command
|
||||
function M.make_directory_change_for_command(dir, command)
|
||||
if fn.has "win32" == 1 then
|
||||
return string.format("pushd %s & %s & popd", cmdpath(dir), command)
|
||||
if vim.o.shell == "powershell" or vim.o.shell == "pwsh" then
|
||||
return string.format("pushd %s ; %s ; popd", cmdpath(dir), command)
|
||||
else
|
||||
return string.format("pushd %s & %s & popd", cmdpath(dir), command)
|
||||
end
|
||||
else
|
||||
return string.format("cd %s;\n %s", dir, command)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue