summaryrefslogtreecommitdiff
path: root/lua/lang/php.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-07-15 05:44:25 +0430
committerGitHub <[email protected]>2021-07-14 21:14:25 -0400
commitf95e150518e40f08a2cb31365e90895e31465d7e (patch)
treeeaae7a371124c4fb0a7778a79768a26be89d85a9 /lua/lang/php.lua
parent7f11162bd80b37af8ae67e41f10e962baacf8047 (diff)
Default config reformat (#951)
Diffstat (limited to 'lua/lang/php.lua')
-rw-r--r--lua/lang/php.lua23
1 files changed, 21 insertions, 2 deletions
diff --git a/lua/lang/php.lua b/lua/lang/php.lua
index 019f3a94..d10e45e4 100644
--- a/lua/lang/php.lua
+++ b/lua/lang/php.lua
@@ -1,8 +1,27 @@
local M = {}
M.config = function()
- -- TODO: implement config for language
- return "No config available!"
+ O.lang.php = {
+ format = {
+ format = {
+ default = "psr12",
+ },
+ },
+ environment = {
+ php_version = "7.4",
+ },
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "ï„‘" },
+ signs = true,
+ underline = true,
+ },
+ filetypes = { "php", "phtml" },
+ formatter = {
+ exe = "phpcbf",
+ args = { "--standard=PSR12", vim.api.nvim_buf_get_name(0) },
+ stdin = false,
+ },
+ }
end
M.format = function()