From 71af65996ade92e17fd0a51e6d49181228ee96f0 Mon Sep 17 00:00:00 2001 From: Michel Date: Thu, 26 Oct 2023 17:41:47 +0200 Subject: [PATCH] feat(formatting): shfmt: use 2-char indents --- lua/plugins/formatting.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lua/plugins/formatting.lua diff --git a/lua/plugins/formatting.lua b/lua/plugins/formatting.lua new file mode 100644 index 0000000..0e2b061 --- /dev/null +++ b/lua/plugins/formatting.lua @@ -0,0 +1,9 @@ +return { + "stevearc/conform.nvim", + opts = { + formatters = { + -- https://github.com/mvdan/sh/blob/master/cmd/shfmt/shfmt.1.scd#printer-flags + shfmt = { prepend_args = { "-i", "2", "-ci", "-bn" } }, + }, + }, +}