Skip to content

Commit

Permalink
fix: toggleterm auto-exit on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy committed Jun 9, 2024
1 parent f820705 commit a074902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ You're recommended to install PowerShell for better experience.]],
vim.api.nvim_set_option_value("shellcmdflag", string.format("%s %s;", basecmd, ctrlcmd), {})
vim.api.nvim_set_option_value("shellredir", "-RedirectStandardOutput %s -NoNewWindow -Wait", {})
vim.api.nvim_set_option_value("shellpipe", "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode", {})
vim.api.nvim_set_option_value("shellquote", nil, {})
vim.api.nvim_set_option_value("shellxquote", nil, {})
vim.api.nvim_set_option_value("shellquote", "", {})
vim.api.nvim_set_option_value("shellxquote", "", {})
end
end

Expand Down

0 comments on commit a074902

Please sign in to comment.