mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
add: php lint for default config
This commit is contained in:
parent
13e2e75069
commit
39b6c22356
1 changed files with 5 additions and 5 deletions
|
@ -136,11 +136,11 @@ if pcode.active_php_config then
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-lint",
|
"mfussenegger/nvim-lint",
|
||||||
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
|
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
|
||||||
opts = {
|
opts = function(_, opts)
|
||||||
linters_by_ft = {
|
opts.linters_by_ft = opts.linters_by_ft or {}
|
||||||
php = { "phpcs" },
|
opts.linters_by_ft.php = { "phpcs" }
|
||||||
},
|
return opts
|
||||||
},
|
end,
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("lint").linters_by_ft = opts.linters_by_ft
|
require("lint").linters_by_ft = opts.linters_by_ft
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue