1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
local server = require "nvim-lsp-installer.server"
local npm = require "nvim-lsp-installer.installers.npm"
return function(name, root_dir)
local cmd = {
npm.executable(root_dir, "ngserver"),
"--stdio",
"--tsProbeLocations",
root_dir,
"--ngProbeLocations",
root_dir,
}
return server.Server:new {
name = name,
root_dir = root_dir,
homepage = "https://angular.io/guide/language-service",
languages = { "angular" },
installer = npm.packages { "@angular/language-server", "typescript" },
default_options = {
cmd = cmd,
on_new_config = function(new_config)
new_config.cmd = cmd
end,
},
}
end
|