Default config reformat (#951)

This commit is contained in:
Abouzar Parvan 2021-07-15 05:44:25 +04:30 committed by GitHub
parent 7f11162bd8
commit f95e150518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 233 additions and 313 deletions

View file

@ -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()