aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorHugo Barrera <hugo@barrera.io>2021-02-24 09:23:44 +0000
committerHugo Osvaldo Barrera <hugo@barrera.io>2021-02-25 13:59:18 +0100
commite413b7e35165509fa8e5526fad2c391975e9931b (patch)
treea7dbd29859e2319362a09f07088292b4636891b3 /lua
parentMerge pull request #756 from kitagry/fix-deno-cache (diff)
downloadnvim-lspconfig-e413b7e35165509fa8e5526fad2c391975e9931b.tar
nvim-lspconfig-e413b7e35165509fa8e5526fad2c391975e9931b.tar.gz
nvim-lspconfig-e413b7e35165509fa8e5526fad2c391975e9931b.tar.bz2
nvim-lspconfig-e413b7e35165509fa8e5526fad2c391975e9931b.tar.lz
nvim-lspconfig-e413b7e35165509fa8e5526fad2c391975e9931b.tar.xz
nvim-lspconfig-e413b7e35165509fa8e5526fad2c391975e9931b.tar.zst
nvim-lspconfig-e413b7e35165509fa8e5526fad2c391975e9931b.zip
Set terraformls to also operate on `hcl` files
The file format that terraformls checks is HCL (Hashicorp Configuration Language). Tools like `vim-hcl` actually set this `filetype` correctly. Make the LSP pick up these files correctly too.
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/terraformls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/terraformls.lua b/lua/lspconfig/terraformls.lua
index 90c973dd..d26b37c0 100644
--- a/lua/lspconfig/terraformls.lua
+++ b/lua/lspconfig/terraformls.lua
@@ -4,7 +4,7 @@ local util = require 'lspconfig/util'
configs.terraformls = {
default_config = {
cmd = {"terraform-ls", "serve"};
- filetypes = {"terraform"};
+ filetypes = {"terraform", "hcl"};
root_dir = util.root_pattern(".terraform", ".git");
};
docs = {