aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio/formatter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/gabrielgio/formatter.lua')
-rw-r--r--lua/gabrielgio/formatter.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/lua/gabrielgio/formatter.lua b/lua/gabrielgio/formatter.lua
index 53e95f5..5c13d89 100644
--- a/lua/gabrielgio/formatter.lua
+++ b/lua/gabrielgio/formatter.lua
@@ -2,10 +2,6 @@ local formatter = require("formatter")
local go = require("formatter.filetypes.go")
local util = require("formatter.util")
-local function yamlfmt()
- return { exe = "yamlfmt" }
-end
-
local function terraformfmt()
return {
exe = "terraform",
@@ -27,7 +23,7 @@ formatter.setup({
scss = { require("formatter.filetypes.css").cssbeautify },
go = { go.gofumpt, go.goimports },
terraform = { terraformfmt },
- yaml = { yamlfmt },
+ yaml = { require("formatter.filetypes.yaml").yamlfmt },
},
["*"] = {
require("formatter.filetypes.any").remove_trailing_whitespace,