aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/solargraph/init.lua
blob: b808d917d6b114e01c46432964ae504bf3673cd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local server = require("nvim-lsp-installer.server")
local path = require("nvim-lsp-installer.path")
local zx = require("nvim-lsp-installer.installers.zx")

local root_dir = server.get_server_root_path("ruby")

return server.Server:new {
    name = "solargraph",
    root_dir = root_dir,
    install_cmd = zx.file("./install.mjs"),
    pre_install_check = function ()
        if vim.fn.executable("bundle") ~= 1 then
            error("bundle not installed")
        end
    end,
    default_options = {
        cmd = { path.concat { root_dir, "solargraph", "solargraph" }, "stdio" },
    }
}