From 271b5b2736c40be5771e477f8d8dd8dea9313840 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Wed, 2 Feb 2022 20:55:48 +0300 Subject: [PATCH] change shell option to powershell on windows --- config/nvim/lua/user/options.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/nvim/lua/user/options.lua b/config/nvim/lua/user/options.lua index 9223f35..cf63966 100644 --- a/config/nvim/lua/user/options.lua +++ b/config/nvim/lua/user/options.lua @@ -31,6 +31,10 @@ opt.fillchars:append({ eob = " " }) opt.showtabline = 2 opt.matchpairs:append({ "<:>" }) +if vim.fn.has("win32") == 1 then + opt.shell = "powershell.exe" -- TODO: need to check if it works later +end + -- Settings for folds -- wo.foldmethod = "expr" -- wo.foldexpr = "nvim_treesitter#foldexpr()"