diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index a6a46b1..423037f 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -195,11 +195,12 @@ vim.keymap.set('t', 'l', 'l', -- vim script func returns 1/0, while lua evals false only if gets false or nil -- so be sure to compare with 1/0 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' - else - vim.opt.shell = 'powershell' - end + -- else + -- vim.opt.shell = 'powershell' + -- end vim.opt.shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;' vim.opt.shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait'