Handle Windows paths
This commit is contained in:
parent
295b20e7c2
commit
47838a9372
1 changed files with 9 additions and 3 deletions
6
init.lua
6
init.lua
|
@ -1,5 +1,11 @@
|
|||
vim.cmd("runtime vimrc")
|
||||
|
||||
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