Browse Source

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

Fabrizio Sestito 4 năm trước cách đây
mục cha
commit
bbe0f78c28
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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" }
 }