diff options
Diffstat (limited to 'lua/lang/php.lua')
-rw-r--r-- | lua/lang/php.lua | 23 |
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() |