Skip to content

Commit

Permalink
feat(registry): add beautysh formatter (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-babu authored Oct 8, 2022
1 parent fa33319 commit 54313a6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions lua/mason-registry/beautysh/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local Pkg = require "mason-core.package"
local pip3 = require "mason-core.managers.pip3"

return Pkg.new {
name = "beautysh",
desc = [[beautysh - A Bash beautifier for the masses.]],
homepage = "https://github.com/lovesegfault/beautysh",
languages = { Pkg.Lang.Bash },
categories = { Pkg.Cat.Formatter },
install = pip3.packages {
"beautysh",
bin = {
"beautysh",
},
},
}
1 change: 1 addition & 0 deletions lua/mason-registry/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ return {
["bash-debug-adapter"] = "mason-registry.bash-debug-adapter",
["bash-language-server"] = "mason-registry.bash-language-server",
["beancount-language-server"] = "mason-registry.beancount-language-server",
beautysh = "mason-registry.beautysh",
["bicep-lsp"] = "mason-registry.bicep-lsp",
black = "mason-registry.black",
["blade-formatter"] = "mason-registry.blade-formatter",
Expand Down
2 changes: 1 addition & 1 deletion lua/mason/mappings/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ return {
assembly = { "asm-lsp" },
astro = { "astro-language-server" },
awk = { "awk-language-server" },
bash = { "bash-debug-adapter", "bash-language-server", "shellcheck", "shellharden", "shfmt" },
bash = { "bash-debug-adapter", "bash-language-server", "beautysh", "shellcheck", "shellharden", "shfmt" },
bazel = { "buildifier" },
beancount = { "beancount-language-server" },
bicep = { "bicep-lsp" },
Expand Down

0 comments on commit 54313a6

Please sign in to comment.