Handle Windows paths

This commit is contained in:
Anthony Rose 2024-11-08 11:00:19 +00:00
parent 295b20e7c2
commit 47838a9372

View file

@ -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