Skip to content

Commit 1f6bc88

Browse files
wert2allUzaaft
andauthored
feat(laravel): add pint formatter (#1692)
* feat(laravel): add Pint formatter support * fix: add pint to null-ls * docs: add pint --------- Co-authored-by: Uzair Aftab <[email protected]>
1 parent 549fd68 commit 1f6bc88

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

lua/astrocommunity/pack/laravel/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ This plugin pack does the following:
2020
- Adds `laravel.nvim` for laravel specific tools
2121
- Adds `laravel-ide-helper.nvim` for laravel model info
2222
- Adds `blade-nav.nvim` for cmp and gf for views/routes/configs and more
23+
- Adds `pint` for formatting

lua/astrocommunity/pack/laravel/init.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,27 @@ return {
7171
},
7272
ft = { "blade", "php" },
7373
},
74+
{
75+
"WhoIsSethDaniel/mason-tool-installer.nvim",
76+
optional = true,
77+
opts = function(_, opts)
78+
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "pint" })
79+
end,
80+
},
81+
{
82+
"jay-babu/mason-null-ls.nvim",
83+
optional = true,
84+
opts = function(_, opts)
85+
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "pint" })
86+
end,
87+
},
88+
{
89+
"stevearc/conform.nvim",
90+
optional = true,
91+
opts = {
92+
formatters_by_ft = {
93+
php = { "pint" },
94+
},
95+
},
96+
},
7497
}

0 commit comments

Comments
 (0)