feat(nvim): use opentofu for formatting

This commit is contained in:
Tine 2024-07-05 20:34:42 +02:00
parent 51cdbd39f7
commit 71bdd80401
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
2 changed files with 9 additions and 2 deletions

View file

@ -1,2 +1,2 @@
--italic-text='always'
--theme=OneHalfLight
--theme=OneHalfDark

View file

@ -241,7 +241,14 @@ require("formatter").setup({
require("formatter.filetypes.proto").buf_format,
},
terraform = {
require("formatter.filetypes.terraform").terraformfmt,
--require("formatter.filetypes.terraform").terraformfmt,
function()
return {
exe = "tofu",
args = { "fmt", "-" },
stdin = true,
}
end,
},
-- Use the special "*" filetype for defining formatter configurations on