From f95e150518e40f08a2cb31365e90895e31465d7e Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Thu, 15 Jul 2021 05:44:25 +0430 Subject: Default config reformat (#951) --- lua/lang/php.lua | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'lua/lang/php.lua') 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() -- cgit v1.2.3