From db78ba8f7724750d32c6914fa04d9c5f140227d4 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 11 Jun 2024 11:50:07 +0200 Subject: [PATCH] bugfix: windows check for shell option --- lua/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/options.lua b/lua/options.lua index 69a1bf5..d81c38f 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -8,7 +8,7 @@ vim.api.nvim_exec2('language en_US', {}) -- Shell options -- Sets the shell to use for system() and ! commands in windows -if vim.fn.has 'win32' and vim.fn.has 'wsl' == 0 then +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;'