vim.cmd("runtime vimrc") if (vim.fn.has 'win32' == 1) then require'lspconfig'.powershell_es.setup{ bundle_path = os.getenv("LOCALAPPDATA") .. '\\PowerShellEditorServices', shell = 'powershell.exe', } else require'lspconfig'.powershell_es.setup{ bundle_path = os.getenv("HOME") .. '/opt/PowerShellEditorServices', } end