blob: e124b9c092d7a7efda577633fe41a0d10f3b3b21 (
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
|
local path = require "nvim-lsp-installer.path"
local server = require "nvim-lsp-installer.server"
local context = require "nvim-lsp-installer.installers.context"
local std = require "nvim-lsp-installer.installers.std"
return function(name, root_dir)
return server.Server:new {
name = name,
root_dir = root_dir,
homepage = "https://github.com/puppetlabs/puppet-editor-services",
installer = {
context.use_github_release_file("puppetlabs/puppet-editor-services", function(version)
return ("puppet_editor_services_%s.zip"):format(version)
end),
context.capture(function(ctx)
return std.unzip_remote(ctx.github_release_file)
end),
},
default_options = {
cmd = { path.concat { root_dir, "puppet-languageserver" }, "--stdio" },
},
}
end
|