Does this bug happen when you install plugin without vim-polyglot?
no
Describe the bug:
Vim polyglot sets *.tfvats files as filetype terraform, which is incorrect. Terraform filetype is for *.tf files. Tfvars files have their own filetype, so they can be properly processed, which is terraform-vars.
Refer to: hashicorp/terraform-ls#1838
To Reproduce:
Install vim-polyglot and use a terraform lsp, like terraform-ls