1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00
dotfiles/nvim/lua/user/plugins/lang/php/lint.lua

30 lines
817 B
Lua

return {
-- 'mfussenegger/nvim-lint',
-- optional = true,
-- opts = {
-- linters = {
-- phpstan = {
-- args = {
-- "analyze",
-- '--error-format=json',
-- '--no-progress',
-- }
-- }
-- },
-- linters_by_ft = {
-- php = { 'phpstan' },
-- },
-- },
-- config = function (_, opts)
-- local lint = require('lint')
-- lint.linters_by_ft = opts.linters_by_ft or {}
-- lint.linters.phpstan.args = opts.linters.phpstan.args
--
-- vim.api.nvim_create_autocmd({ "BufWritePost" }, {
-- callback = function()
-- require('lint').try_lint()
-- end,
-- })
-- end
}