Skip to content

Commit

Permalink
feat(registry): add brighterscript-formatter (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
casonadams committed Feb 19, 2023
1 parent 3e5c8e1 commit 838eedb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions lua/mason-registry/brighterscript-formatter/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local Pkg = require "mason-core.package"
local npm = require "mason-core.managers.npm"

return Pkg.new {
name = "brighterscript-formatter",
desc = [[A code formatter for BrightScript and BrighterScript.]],
homepage = "https://github.com/rokucommunity/brighterscript-formatter",
languages = { Pkg.Lang.BrighterScript },
categories = { Pkg.Cat.Formatter },
install = npm.packages { "brighterscript-formatter", bin = { "bsfmt" } },
}
1 change: 1 addition & 0 deletions lua/mason-registry/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ return {
["blade-formatter"] = "mason-registry.blade-formatter",
blue = "mason-registry.blue",
brighterscript = "mason-registry.brighterscript",
["brighterscript-formatter"] = "mason-registry.brighterscript-formatter",
["bsl-language-server"] = "mason-registry.bsl-language-server",
buf = "mason-registry.buf",
["buf-language-server"] = "mason-registry.buf-language-server",
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 @@ -17,7 +17,7 @@ return {
beancount = { "beancount-language-server" },
bicep = { "bicep-lsp" },
blade = { "blade-formatter" },
brighterscript = { "brighterscript" },
brighterscript = { "brighterscript", "brighterscript-formatter" },
c = { "clang-format", "clangd", "codelldb", "cpplint", "cpptools" },
["c#"] = { "clang-format", "csharp-language-server", "csharpier", "netcoredbg", "omnisharp", "omnisharp-mono", "semgrep" },
["c++"] = { "clang-format", "clangd", "codelldb", "cpplint", "cpptools" },
Expand Down

0 comments on commit 838eedb

Please sign in to comment.