mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
30 lines
817 B
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
|
|
}
|