feat(php): update php setup

This commit is contained in:
2026-02-11 18:52:08 +01:00
parent af2d8df323
commit 778610083e
2 changed files with 3 additions and 6 deletions
+3 -5
View File
@@ -6,12 +6,9 @@ local util = require("util")
return { return {
settings = { settings = {
intelephense = { intelephense = {
environment = {
phpVersion = "8.4",
},
format = { format = {
enable = true, enable = true,
braces = "psr12", braces = "per",
}, },
}, },
}, },
@@ -21,10 +18,10 @@ return {
Linter.add(bufnr, { Linter.add(bufnr, {
cmd = { cmd = {
"phpcs", "phpcs",
"--standard=PSR12",
"--report=emacs", "--report=emacs",
"-s", "-s",
"-q", "-q",
"--stdin-path=%file%",
"-", "-",
}, },
stdin = true, stdin = true,
@@ -38,6 +35,7 @@ return {
}, },
zero_idx_col = true, zero_idx_col = true,
zero_idx_lnum = true, zero_idx_lnum = true,
ignore_stderr = true,
}) })
vim.keymap.set("n", "<leader>lf", function() vim.keymap.set("n", "<leader>lf", function()
-1
View File
@@ -12,7 +12,6 @@ local languages = {
"vim", "vim",
"vimdoc", "vimdoc",
"php", "php",
"phpdoc",
"rust", "rust",
"comment", "comment",
"gitcommit", "gitcommit",