format bash scripts with shfmt

This commit is contained in:
Oliver Ladner 2024-04-25 16:24:00 +02:00
commit d883ab4aaa
2 changed files with 2 additions and 0 deletions

View file

@ -105,6 +105,7 @@ formatters installed here are used via `conform.nvim`.
| Linter | YAML | **yamllint** | | yamllint vs. ansible-lint |
| Formatter | Markdown, YAML | **prettier** | Markdown table formatting! | n/a |
| Formatter | Lua | **stylua** | Formats Lua | n/a |
| Formatter | Bash | **shfmt** | Formats Bash scripts | n/a |
## Key bindings

View file

@ -20,6 +20,7 @@ return {
graphql = { "prettier" },
lua = { "stylua" },
python = { "isort", "black" },
sh = { "shfmt" },
},
format_on_save = {
lsp_fallback = true,