diff --git a/init.lua b/init.lua index 2c77f5f..e8366d9 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,11 @@ vim.cmd("runtime vimrc") -require'lspconfig'.powershell_es.setup{ - bundle_path = os.getenv("HOME") .. '/opt/PowerShellEditorServices', -} +if vim.fn.has('windows') then + require'lspconfig'.powershell_es.setup{ + bundle_path = os.getenv("LOCALAPPDATA") .. '\\PowerShellEditorServices', + } +else + require'lspconfig'.powershell_es.setup{ + bundle_path = os.getenv("HOME") .. '/opt/PowerShellEditorServices', + } +end