aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/elmls/init.lua
blob: f16271dc4abf17396591731c6aa11a8c5e4b7daf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local server = require("nvim-lsp-installer.server")
local path = require("nvim-lsp-installer.path")
local npm = require("nvim-lsp-installer.installers.npm")

local root_dir = server.get_server_root_path("elm")

return server.Server:new {
  name = "elmls",
  root_dir = root_dir,
  installer = npm.packages { "elm", "elm-test", "elm-format", "@elm-tooling/elm-language-server" },
  default_options = {
    cmd = { path.concat { root_dir, "node_modules", ".bin", "elm-language-server" } },
  }
}