From 2b09f7fcebcdf7b5577f21e276bcdb56e7479c4e Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Thu, 12 Oct 2023 12:22:07 +0300 Subject: [PATCH] feat(lang-shell): set default indent in shell scripts to 2 spaces --- nvim/lua/plugins/lang/shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/plugins/lang/shell.lua b/nvim/lua/plugins/lang/shell.lua index d73e116..981e22a 100644 --- a/nvim/lua/plugins/lang/shell.lua +++ b/nvim/lua/plugins/lang/shell.lua @@ -18,7 +18,7 @@ return { vim.list_extend(opts.sources, { nls.builtins.code_actions.shellcheck, -- nls.builtins.diagnostics.shellcheck, - nls.builtins.formatting.shfmt, + nls.builtins.formatting.shfmt.with({ args = { "-filename", "$FILENAME", "-i", "2" } }), }) end, },