From 63c3a122dc7385d5ee81974d67490716787f4c73 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Tue, 31 Oct 2023 20:08:01 +0900 Subject: [PATCH] fix: nvim: remove pwsh detection --- dotfiles/neovim/init.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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'