From d883ab4aaa98341940b026c54e8f49f6ec42b28f Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Thu, 25 Apr 2024 16:24:00 +0200 Subject: [PATCH] format bash scripts with shfmt --- README.md | 1 + lua/weeheavy/plugins/lsp/conform.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 3395c55..2425de6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lua/weeheavy/plugins/lsp/conform.lua b/lua/weeheavy/plugins/lsp/conform.lua index 565b81e..810be46 100644 --- a/lua/weeheavy/plugins/lsp/conform.lua +++ b/lua/weeheavy/plugins/lsp/conform.lua @@ -20,6 +20,7 @@ return { graphql = { "prettier" }, lua = { "stylua" }, python = { "isort", "black" }, + sh = { "shfmt" }, }, format_on_save = { lsp_fallback = true,