From a097fa4c04e6db34bb409e0dea302c20629da8ec Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Tue, 13 Jul 2021 21:13:55 -0400 Subject: LunarVim 0.4.8 (#919) --- ftplugin/tf.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ftplugin/tf.lua') diff --git a/ftplugin/tf.lua b/ftplugin/tf.lua index 7291cbd8..a328f7c2 100644 --- a/ftplugin/tf.lua +++ b/ftplugin/tf.lua @@ -1,3 +1,19 @@ +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 -- cgit v1.2.3