mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-21 23:23:34 +00:00
feat(nvim): use opentofu for formatting
This commit is contained in:
parent
51cdbd39f7
commit
71bdd80401
2 changed files with 9 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
||||||
--italic-text='always'
|
--italic-text='always'
|
||||||
--theme=OneHalfLight
|
--theme=OneHalfDark
|
||||||
|
|
|
@ -241,7 +241,14 @@ require("formatter").setup({
|
||||||
require("formatter.filetypes.proto").buf_format,
|
require("formatter.filetypes.proto").buf_format,
|
||||||
},
|
},
|
||||||
terraform = {
|
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
|
-- Use the special "*" filetype for defining formatter configurations on
|
||||||
|
|
Loading…
Reference in a new issue