From 36984ce5523fc8041343fe5462d80cbf1799cdc0 Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Fri, 8 Nov 2024 11:11:15 +0000 Subject: [PATCH] Fix OS name --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e8366d9..adf470a 100644 --- a/init.lua +++ b/init.lua @@ -1,8 +1,9 @@ vim.cmd("runtime vimrc") -if vim.fn.has('windows') then +if vim.fn.has('win32') then require'lspconfig'.powershell_es.setup{ bundle_path = os.getenv("LOCALAPPDATA") .. '\\PowerShellEditorServices', + shell = 'powershell.exe', } else require'lspconfig'.powershell_es.setup{