Explorar el Código

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

Fabrizio Sestito hace 4 años
padre
commit
bbe0f78c28
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      lua/lsp/terraform-ls.lua

+ 2 - 1
lua/lsp/terraform-ls.lua

@@ -1,4 +1,5 @@
 require'lspconfig'.terraformls.setup{
     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" }
 }