fix: nvim: remove pwsh detection
This commit is contained in:
parent
2464e09763
commit
63c3a122dc
1 changed files with 5 additions and 4 deletions
|
@ -195,11 +195,12 @@ vim.keymap.set('t', '<C-w>l', '<C-\\><C-N><C-w>l',
|
||||||
-- vim script func returns 1/0, while lua evals false only if gets false or nil
|
-- vim script func returns 1/0, while lua evals false only if gets false or nil
|
||||||
-- so be sure to compare with 1/0
|
-- so be sure to compare with 1/0
|
||||||
if vim.fn.has('win32') == 1 then
|
if vim.fn.has('win32') == 1 then
|
||||||
if vim.fn.executable('pwsh') == 1 then
|
-- this evaluation is so slow that I removed windows powershell support
|
||||||
|
-- if vim.fn.executable('pwsh') == 1 then
|
||||||
vim.opt.shell = 'pwsh'
|
vim.opt.shell = 'pwsh'
|
||||||
else
|
-- else
|
||||||
vim.opt.shell = 'powershell'
|
-- vim.opt.shell = 'powershell'
|
||||||
end
|
-- end
|
||||||
vim.opt.shellcmdflag =
|
vim.opt.shellcmdflag =
|
||||||
'-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
|
'-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
|
||||||
vim.opt.shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait'
|
vim.opt.shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait'
|
||||||
|
|
Loading…
Reference in a new issue