From 257a59a66c838b4ee906bcf8033ed68066e02b6f Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 20 Mar 2024 14:52:56 +1100 Subject: [PATCH] Add PowerShell LSP support (might come in handy?) --- dot-config/vim/lsp/servers.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dot-config/vim/lsp/servers.vim b/dot-config/vim/lsp/servers.vim index b2fe961..ace88e0 100644 --- a/dot-config/vim/lsp/servers.vim +++ b/dot-config/vim/lsp/servers.vim @@ -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',