1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
local server = require "nvim-lsp-installer.server"
local path = require "nvim-lsp-installer.path"
local installers = require "nvim-lsp-installer.installers"
local shell = require "nvim-lsp-installer.installers.shell"
local root_dir = server.get_server_root_path "ansiblels"
return server.Server:new {
name = "ansiblels",
root_dir = root_dir,
installer = installers.when {
unix = shell.bash [[
git clone --depth 1 https://github.com/ansible/ansible-language-server .;
npm install;
npm run build;
npm install --production;
]],
},
default_options = {
filetypes = { "yaml", "yaml.ansible" },
cmd = { "node", path.concat { root_dir, "out", "server", "src", "server.js" }, "--stdio" },
},
}
|