From 9658868cd972c7406ec04c0cd8ee60688b6eb12c Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Thu, 23 Apr 2026 21:04:36 +0200 Subject: [PATCH] feat(sh): replace shfmt with beautysh --- after/lsp/bashls.lua | 2 +- plugins/mason-auto-install.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/after/lsp/bashls.lua b/after/lsp/bashls.lua index 5ac16f7..c218171 100644 --- a/after/lsp/bashls.lua +++ b/after/lsp/bashls.lua @@ -11,7 +11,7 @@ return { vim.keymap.set("n", "lf", function() util.format({ buf = bufnr, - cmd = { "shfmt", "-s", "-i", "4", "-" }, + cmd = { "beautysh", "-" }, output = "stdout", }) end, { buffer = bufnr }) diff --git a/plugins/mason-auto-install.lua b/plugins/mason-auto-install.lua index 71530d4..8f2fda1 100644 --- a/plugins/mason-auto-install.lua +++ b/plugins/mason-auto-install.lua @@ -2,7 +2,7 @@ require("mason-auto-install").setup({ packages = { { "bash-language-server", - dependencies = { "shellcheck", "shfmt" }, + dependencies = { "shellcheck", "beautysh" }, }, -- "clangd", "neocmakelsp",