Handle Windows paths
This commit is contained in:
parent
295b20e7c2
commit
47838a9372
1 changed files with 9 additions and 3 deletions
10
init.lua
10
init.lua
|
@ -1,5 +1,11 @@
|
|||
vim.cmd("runtime vimrc")
|
||||
|
||||
require'lspconfig'.powershell_es.setup{
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue