diff options
author | christianchiarulli <[email protected]> | 2021-07-14 18:50:07 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-14 18:50:07 -0400 |
commit | 2a7b3d4892605508d0b0328444d689e1c4922897 (patch) | |
tree | bc43127c8c01edbac4871813433f18d7d23942d6 /ftplugin/tf.lua | |
parent | 81adc270dd674b2f3da19340f0c34d60d8667542 (diff) |
reformat most langs
Diffstat (limited to 'ftplugin/tf.lua')
-rw-r--r-- | ftplugin/tf.lua | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/ftplugin/tf.lua b/ftplugin/tf.lua index a328f7c2..cfe54936 100644 --- a/ftplugin/tf.lua +++ b/ftplugin/tf.lua @@ -1,25 +1,4 @@ -O.formatters.filetype["hcl"] = { - function() - return { - exe = O.lang.terraform.formatter.exe, - args = O.lang.terraform.formatter.args, - stdin = not (O.lang.terraform.formatter.stdin ~= nil), - } - end, -} -O.formatters.filetype["tf"] = O.formatters.filetype["hcl"] - -require("formatter.config").set_defaults { - logging = false, - filetype = O.formatters.filetype, -} - -if require("lv-utils").check_lsp_client_active "terraformls" then - return -end - -require("lspconfig").terraformls.setup { - cmd = { DATA_PATH .. "/lspinstall/terraform/terraform-ls", "serve" }, - on_attach = require("lsp").common_on_attach, - filetypes = { "tf", "terraform", "hcl" }, -} +require("lang.terraform").format() +require("lang.terraform").lint() +require("lang.terraform").lsp() +require("lang.terraform").dap() |