Handle Windows paths
This commit is contained in:
parent
295b20e7c2
commit
47838a9372
1 changed files with 9 additions and 3 deletions
12
init.lua
12
init.lua
|
@ -1,5 +1,11 @@
|
||||||
vim.cmd("runtime vimrc")
|
vim.cmd("runtime vimrc")
|
||||||
|
|
||||||
require'lspconfig'.powershell_es.setup{
|
if vim.fn.has('windows') then
|
||||||
bundle_path = os.getenv("HOME") .. '/opt/PowerShellEditorServices',
|
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