blob: 5df3ceccbf09d5129ac064b5a7d2bed886eb99df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
local server = require "nvim-lsp-installer.server"
local installers = require "nvim-lsp-installer.installers"
local path = require "nvim-lsp-installer.path"
local zx = require "nvim-lsp-installer.installers.zx"
local root_dir = server.get_server_root_path "terraform"
return server.Server:new {
name = "terraformls",
root_dir = root_dir,
installer = installers.when {
unix = zx.file "./install.mjs",
},
default_options = {
cmd = { path.concat { root_dir, "terraform-ls", "terraform-ls" }, "serve" },
},
}
|