From d1503995c8ba7240516ba2267b67366b3b5fc51b Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 1 Jul 2024 16:50:27 +0200 Subject: [PATCH] profiled pwsh execution for presets --- lua/options.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/options.lua b/lua/options.lua index d81c38f..51af581 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -10,8 +10,7 @@ vim.api.nvim_exec2('language en_US', {}) -- Sets the shell to use for system() and ! commands in windows if vim.fn.has 'win32' == 1 and vim.fn.has 'wsl' == 0 then vim.opt.shell = vim.fn.executable 'pwsh' == 1 and 'pwsh' or 'powershell' - vim.opt.shellcmdflag = - '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;' + vim.opt.shellcmdflag = '-NoLogo -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;' vim.opt.shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait' vim.opt.shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode' vim.opt.shellxquote = ''