Skip to content

Commit

Permalink
feat(registry): add laravel pint (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
theutz committed Nov 1, 2022
1 parent 4bdfe67 commit f466ced
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/mason-registry/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ return {
phpcs = "mason-registry.phpcs",
phpmd = "mason-registry.phpmd",
phpstan = "mason-registry.phpstan",
pint = "mason-registry.pint",
["powershell-editor-services"] = "mason-registry.powershell-editor-services",
prettier = "mason-registry.prettier",
prettierd = "mason-registry.prettierd",
Expand Down
16 changes: 16 additions & 0 deletions lua/mason-registry/pint/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local Pkg = require "mason-core.package"
local composer = require "mason-core.managers.composer"

return Pkg.new {
name = "pint",
desc = [[Laravel Pint is an opinionated PHP code style fixer for minimalists.]],
homepage = "https://laravel.com/docs/9.x/pint",
languages = { Pkg.Lang.PHP },
categories = { Pkg.Cat.Formatter },
install = composer.packages {
"laravel/pint",
bin = {
"pint",
},
},
}
2 changes: 1 addition & 1 deletion lua/mason/mappings/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ return {
opencl = { "opencl-language-server" },
openfoam = { "foam-language-server" },
perl = { "perlnavigator" },
php = { "intelephense", "php-cs-fixer", "php-debug-adapter", "phpactor", "phpcbf", "phpcs", "phpmd", "phpstan", "psalm" },
php = { "intelephense", "php-cs-fixer", "php-debug-adapter", "phpactor", "phpcbf", "phpcs", "phpmd", "phpstan", "pint", "psalm" },
powershell = { "powershell-editor-services" },
prisma = { "prisma-language-server" },
protobuf = { "buf", "buf-language-server" },
Expand Down

0 comments on commit f466ced

Please sign in to comment.