Add file types to terraform language server config (#467)

This commit is contained in:
Fabrizio Sestito 2021-06-18 22:19:19 +02:00 committed by GitHub
parent 3eee6dc3fd
commit bbe0f78c28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
require'lspconfig'.terraformls.setup{ require'lspconfig'.terraformls.setup{
cmd = {DATA_PATH .. "/lspinstall/terraform/terraform-ls", "serve"}, cmd = {DATA_PATH .. "/lspinstall/terraform/terraform-ls", "serve"},
on_attach = require'lsp'.common_on_attach on_attach = require'lsp'.common_on_attach,
filetypes = { "tf", "terraform", "hcl" }
} }