1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:40:06 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/terraformls.lua
2021-10-05 15:13:10 +08:00

23 lines
647 B
Lua

local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
configs.terraformls = {
default_config = {
cmd = { 'terraform-ls', 'serve' },
filetypes = { 'terraform' },
root_dir = util.root_pattern('.terraform', '.git'),
},
docs = {
package_json = 'https://raw.githubusercontent.com/hashicorp/vscode-terraform/master/package.json',
description = [[
https://github.com/hashicorp/terraform-ls
Terraform language server
Download a released binary from https://github.com/hashicorp/terraform-ls/releases.
]],
default_config = {
root_dir = [[root_pattern(".terraform", ".git")]],
},
},
}