add: php default linter config

This commit is contained in:
asep.komarudin 2024-06-24 16:25:36 +07:00
parent ef95246d88
commit 10dfd41f44
5 changed files with 41 additions and 8 deletions

View file

@ -106,6 +106,19 @@ if pcode.active_php_config then
{ "<Leader>TS", function() require("neotest").run.stop() end, desc = "Stop" },
},
},
{
"gbprod/none-ls-php.nvim",
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft = opts.linters_by_ft or {}
opts.linters_by_ft.php = { "phpcs" }
end,
config = function(_, opts)
require("lint").linters_by_ft = opts.linters_by_ft
end,
},
}
end