diff options
Diffstat (limited to 'lua/lspconfig/terraformls.lua')
| -rw-r--r-- | lua/lspconfig/terraformls.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/terraformls.lua b/lua/lspconfig/terraformls.lua new file mode 100644 index 00000000..7d551e5c --- /dev/null +++ b/lua/lspconfig/terraformls.lua @@ -0,0 +1,23 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.terraformls = { + default_config = { + cmd = {"terraform-ls"}; + 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")]]; + }; + }; +} +-- vim:et ts=2 sw=2 |
