blob: 8e2edd4d96b25f9a23629a19249eaf8295cf5004 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
local server = require "nvim-lsp-installer.server"
local path = require "nvim-lsp-installer.path"
local std = require "nvim-lsp-installer.core.managers.std"
local github = require "nvim-lsp-installer.core.managers.github"
return function(name, root_dir)
return server.Server:new {
name = name,
root_dir = root_dir,
homepage = "https://github.com/PowerShell/PowerShellEditorServices",
languages = { "powershell" },
async = true,
installer = function()
std.ensure_executable("pwsh", { help_url = "https://github.com/PowerShell/PowerShell#get-powershell" })
github.unzip_release_file({
repo = "PowerShell/PowerShellEditorServices",
asset_file = "PowerShellEditorServices.zip",
}).with_receipt()
end,
default_options = {
bundle_path = path.concat { root_dir },
},
}
end
|