hashivim / vim-terraform

basic vim/terraform integration
http://hashivim.github.io/vim-terraform
ISC License
1.07k stars 111 forks source link

add hcl to filetype #168

Closed MichaHoffmann closed 3 years ago

MichaHoffmann commented 3 years ago

Add the hcl filetype to make terraform files work with hcl plugins.

See for example: https://github.com/nvim-treesitter/nvim-treesitter/pull/1445

dimbleby commented 3 years ago

Per https://github.com/jvirtanen/vim-hcl/pull/15, the "other" HCL plugin now sets the filetype to more specific things. In particular, it sets .tf files to terraform.

So I think that we don't want to make this change here after all, that'll just confuse things. Instead we should tell nvim-treesitter to use the HCL parser for terraform and nomad filetypes.

MichaHoffmann commented 3 years ago

Hey, thanks for researching! I'll close this request and add nomad and terraform to the parser configuration in the nvim-treesitter MR.