Add PowerShell LSP support (might come in handy?)

This commit is contained in:
Danielle McLean 2024-03-20 14:52:56 +11:00
parent 63502cd247
commit 257a59a66c
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -49,6 +49,21 @@ const lspServers = [
install: 'curl -Lo phpactor https://github.com/phpactor/phpactor/releases/latest/download/phpactor.phar && chmod u+x phpactor && mv phpactor ~/bin',
},
{
name: 'PowerShellEditorServices',
filetype: 'ps1',
path: exepath('pwsh'),
args: ['-NoLogo', '-NoProfile', '-Command', expand('~/.cache/powershell/PowerShellEditorServices/Start-EditorServices.ps1') .. ' -Stdio'],
installed: () => executable('pwsh') && filereadable(expand('~/.cache/powershell/PowerShellEditorServices/Start-EditorServices.ps1')),
install: [
'mkdir -p ~/.cache/powershell',
'cd ~/.cache/powershell',
'wget https://github.com/PowerShell/PowerShellEditorServices/releases/latest/download/PowerShellEditorServices.zip',
'unzip PowerShellEditorServices.zip',
'rm PowerShellEditorServices.zip'
]->join(' && ')
},
{
name: 'pylsp',
filetype: 'python',