diff options
| author | Hugo Barrera <hugo@barrera.io> | 2021-02-24 09:23:44 +0000 |
|---|---|---|
| committer | Hugo Osvaldo Barrera <hugo@barrera.io> | 2021-02-25 13:59:18 +0100 |
| commit | e413b7e35165509fa8e5526fad2c391975e9931b (patch) | |
| tree | a7dbd29859e2319362a09f07088292b4636891b3 /lua | |
| parent | Merge pull request #756 from kitagry/fix-deno-cache (diff) | |
| download | nvim-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.lua | 2 |
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 = { |
