From 3374a5247c5d02bd0a854d450b493b05db92043c Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 4 Oct 2023 22:22:31 +0200 Subject: [PATCH] nvim: proto and terraform autoformat --- .config/nvim/lua/plugins/formatting.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .config/nvim/lua/plugins/formatting.lua diff --git a/.config/nvim/lua/plugins/formatting.lua b/.config/nvim/lua/plugins/formatting.lua new file mode 100644 index 0000000..e51693d --- /dev/null +++ b/.config/nvim/lua/plugins/formatting.lua @@ -0,0 +1,11 @@ +return { + { + "stevearc/conform.nvim", + opts = { + formatters_by_ft = { + ["proto"] = { { "buf" } }, + ["terraform"] = { { "terraform_fmt" } }, + }, + }, + }, +}