Skip to content

Commit 5c72382

Browse files
mochaaPgithub-actions[bot]
authored andcommitted
chore: Auto generate docs
1 parent 023ccc3 commit 5c72382

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

doc/BUILTINS.md

+17
Original file line numberDiff line numberDiff line change
@@ -4195,6 +4195,23 @@ local sources = { null_ls.builtins.formatting.prettier_standard }
41954195
- Command: `prettier-standard`
41964196
- Args: `{ "--stdin" }`
41974197

4198+
### [pretty_php](https://github.com/lkrms/pretty-php)
4199+
4200+
The opinionated PHP code formatter.
4201+
4202+
#### Usage
4203+
4204+
```lua
4205+
local sources = { null_ls.builtins.formatting.pretty_php }
4206+
```
4207+
4208+
#### Defaults
4209+
4210+
- Filetypes: `{ "php" }`
4211+
- Method: `formatting`
4212+
- Command: `pretty-php`
4213+
- Args: `{ "$FILENAME" }`
4214+
41984215
### [prismaFmt](https://github.com/prisma/prisma-engines)
41994216

42004217
Formatter for the prisma filetype.

doc/null-ls.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*null-ls.txt* Last change: 2023 December 22
1+
*null-ls.txt* Last change: 2024 January 02
22

33
==============================================================================
44
Table of Contents *null-ls-table-of-contents*

lua/null-ls/builtins/_meta/filetype_map.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ return {
303303
},
304304
php = {
305305
diagnostics = { "php", "phpcs", "phpmd", "phpstan", "psalm" },
306-
formatting = { "phpcbf", "phpcsfixer", "pint" }
306+
formatting = { "phpcbf", "phpcsfixer", "pint", "pretty_php" }
307307
},
308308
prisma = {
309309
formatting = { "prismaFmt" }

lua/null-ls/builtins/_meta/formatting.lua

+3
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ return {
295295
prettierd = {
296296
filetypes = { "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "css", "scss", "less", "html", "json", "jsonc", "yaml", "markdown", "markdown.mdx", "graphql", "handlebars" }
297297
},
298+
pretty_php = {
299+
filetypes = { "php" }
300+
},
298301
prismaFmt = {
299302
filetypes = { "prisma" }
300303
},

0 commit comments

Comments
 (0)