Skip to content

Commit

Permalink
Fix(terraform): Add 'tf' to filetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexvZyl authored Jan 30, 2024
1 parent 0219062 commit bfd8fdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/server_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10574,7 +10574,7 @@ require'lspconfig'.terraform_lsp.setup{}
```
- `filetypes` :
```lua
{ "terraform", "hcl" }
{ "terraform", "hcl", "tf" }
```
- `root_dir` :
```lua
Expand Down Expand Up @@ -10626,7 +10626,7 @@ require'lspconfig'.terraformls.setup{}
```
- `filetypes` :
```lua
{ "terraform", "terraform-vars" }
{ "terraform", "terraform-vars", "tf" }
```
- `root_dir` :
```lua
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/terraform_lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'terraform-lsp' },
filetypes = { 'terraform', 'hcl' },
filetypes = { 'terraform', 'hcl', 'tf' },
root_dir = util.root_pattern('.terraform', '.git'),
},
docs = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/terraformls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'terraform-ls', 'serve' },
filetypes = { 'terraform', 'terraform-vars' },
filetypes = { 'terraform', 'terraform-vars', 'tf' },
root_dir = util.root_pattern('.terraform', '.git'),
},
docs = {
Expand Down

0 comments on commit bfd8fdc

Please sign in to comment.