aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/ansiblels/init.lua
blob: 430d55b81c23f44a8cfa925baeeb38b728f0adf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local server = require "nvim-lsp-installer.server"
local path = require "nvim-lsp-installer.path"
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 = shell.raw [[
    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" },
    },
}