feat(php): update php setup
This commit is contained in:
@@ -6,12 +6,9 @@ local util = require("util")
|
||||
return {
|
||||
settings = {
|
||||
intelephense = {
|
||||
environment = {
|
||||
phpVersion = "8.4",
|
||||
},
|
||||
format = {
|
||||
enable = true,
|
||||
braces = "psr12",
|
||||
braces = "per",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -21,10 +18,10 @@ return {
|
||||
Linter.add(bufnr, {
|
||||
cmd = {
|
||||
"phpcs",
|
||||
"--standard=PSR12",
|
||||
"--report=emacs",
|
||||
"-s",
|
||||
"-q",
|
||||
"--stdin-path=%file%",
|
||||
"-",
|
||||
},
|
||||
stdin = true,
|
||||
@@ -38,6 +35,7 @@ return {
|
||||
},
|
||||
zero_idx_col = true,
|
||||
zero_idx_lnum = true,
|
||||
ignore_stderr = true,
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<leader>lf", function()
|
||||
|
||||
@@ -12,7 +12,6 @@ local languages = {
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"php",
|
||||
"phpdoc",
|
||||
"rust",
|
||||
"comment",
|
||||
"gitcommit",
|
||||
|
||||
Reference in New Issue
Block a user