Skip to content

Commit 023ccc3

Browse files
formatting: add pretty-php (#54)
https://github.com/lkrms/pretty-php
1 parent e7382de commit 023ccc3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
local h = require("null-ls.helpers")
2+
local methods = require("null-ls.methods")
3+
4+
local FORMATTING = methods.internal.FORMATTING
5+
6+
return h.make_builtin({
7+
name = "pretty_php",
8+
meta = {
9+
url = "https://github.com/lkrms/pretty-php",
10+
description = "The opinionated PHP code formatter.",
11+
},
12+
method = FORMATTING,
13+
filetypes = { "php" },
14+
generator_opts = {
15+
command = "pretty-php",
16+
args = { "$FILENAME" },
17+
stdin = false,
18+
},
19+
factory = h.formatter_factory,
20+
})

0 commit comments

Comments
 (0)